Lines Matching refs:ipv4
64 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init()
66 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init()
91 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table()
100 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table()
103 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table()
110 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
126 head = &net->ipv4.fib_table_hash[h]; in fib_get_table()
137 return net->ipv4.fib_has_custom_rules; in fib4_has_custom_rules()
147 rcu_assign_pointer(net->ipv4.fib_main, new); in fib_replace_table()
150 rcu_assign_pointer(net->ipv4.fib_default, new); in fib_replace_table()
199 struct hlist_head *head = &net->ipv4.fib_table_hash[h]; in fib_flush()
442 if (net->ipv4.fib_has_custom_local_routes || in fib_validate_source()
894 net->ipv4.fib_has_custom_local_routes = true; in inet_rtm_newroute()
1021 head = &net->ipv4.fib_table_hash[h]; in inet_dump_fib()
1386 netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT); in nl_fib_input()
1399 net->ipv4.fibnl = sk; in nl_fib_lookup_init()
1405 netlink_kernel_release(net->ipv4.fibnl); in nl_fib_lookup_exit()
1406 net->ipv4.fibnl = NULL; in nl_fib_lookup_exit()
1431 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1436 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1478 atomic_inc(&net->ipv4.dev_addr_genid); in fib_netdev_event()
1529 net->ipv4.fib_table_hash = kzalloc(size, GFP_KERNEL); in ip_fib_net_init()
1530 if (!net->ipv4.fib_table_hash) { in ip_fib_net_init()
1541 kfree(net->ipv4.fib_table_hash); in ip_fib_net_init()
1553 RCU_INIT_POINTER(net->ipv4.fib_main, NULL); in ip_fib_net_exit()
1554 RCU_INIT_POINTER(net->ipv4.fib_default, NULL); in ip_fib_net_exit()
1562 struct hlist_head *head = &net->ipv4.fib_table_hash[i]; in ip_fib_net_exit()
1577 kfree(net->ipv4.fib_table_hash); in ip_fib_net_exit()
1586 net->ipv4.fib_num_tclassid_users = 0; in fib_net_init()