Lines Matching refs:ipv4

67 				&net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]);  in fib4_rules_init()
69 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init()
94 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table()
103 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table()
106 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table()
113 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
129 head = &net->ipv4.fib_table_hash[h]; in fib_get_table()
139 return net->ipv4.fib_has_custom_rules; in fib4_has_custom_rules()
149 rcu_assign_pointer(net->ipv4.fib_main, new); in fib_replace_table()
152 rcu_assign_pointer(net->ipv4.fib_default, new); in fib_replace_table()
201 struct hlist_head *head = &net->ipv4.fib_table_hash[h]; in fib_flush()
427 if (net->ipv4.fib_has_custom_local_routes || in fib_validate_source()
790 net->ipv4.fib_has_custom_local_routes = true; in inet_rtm_newroute()
815 head = &net->ipv4.fib_table_hash[h]; in inet_dump_fib()
1179 netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT); in nl_fib_input()
1192 net->ipv4.fibnl = sk; in nl_fib_lookup_init()
1198 netlink_kernel_release(net->ipv4.fibnl); in nl_fib_lookup_exit()
1199 net->ipv4.fibnl = NULL; in nl_fib_lookup_exit()
1224 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1229 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1270 atomic_inc(&net->ipv4.dev_addr_genid); in fib_netdev_event()
1321 net->ipv4.fib_table_hash = kzalloc(size, GFP_KERNEL); in ip_fib_net_init()
1322 if (!net->ipv4.fib_table_hash) { in ip_fib_net_init()
1333 kfree(net->ipv4.fib_table_hash); in ip_fib_net_init()
1345 RCU_INIT_POINTER(net->ipv4.fib_main, NULL); in ip_fib_net_exit()
1346 RCU_INIT_POINTER(net->ipv4.fib_default, NULL); in ip_fib_net_exit()
1354 struct hlist_head *head = &net->ipv4.fib_table_hash[i]; in ip_fib_net_exit()
1369 kfree(net->ipv4.fib_table_hash); in ip_fib_net_exit()
1378 net->ipv4.fib_num_tclassid_users = 0; in fib_net_init()