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()
86 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table()
95 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table()
98 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table()
105 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
121 head = &net->ipv4.fib_table_hash[h]; in fib_get_table()
137 rcu_assign_pointer(net->ipv4.fib_main, new); in fib_replace_table()
140 rcu_assign_pointer(net->ipv4.fib_default, new); in fib_replace_table()
189 struct hlist_head *head = &net->ipv4.fib_table_hash[h]; in fib_flush()
436 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()
1022 head = &net->ipv4.fib_table_hash[h]; in inet_dump_fib()
1388 nlmsg_unicast(net->ipv4.fibnl, skb, portid); in nl_fib_input()
1401 net->ipv4.fibnl = sk; in nl_fib_lookup_init()
1407 netlink_kernel_release(net->ipv4.fibnl); in nl_fib_lookup_exit()
1408 net->ipv4.fibnl = NULL; in nl_fib_lookup_exit()
1433 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1438 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1480 atomic_inc(&net->ipv4.dev_addr_genid); in fib_netdev_event()
1530 net->ipv4.sysctl_fib_multipath_hash_fields = in ip_fib_net_init()
1537 net->ipv4.fib_table_hash = kzalloc(size, GFP_KERNEL); in ip_fib_net_init()
1538 if (!net->ipv4.fib_table_hash) { in ip_fib_net_init()
1549 kfree(net->ipv4.fib_table_hash); in ip_fib_net_init()
1561 RCU_INIT_POINTER(net->ipv4.fib_main, NULL); in ip_fib_net_exit()
1562 RCU_INIT_POINTER(net->ipv4.fib_default, NULL); in ip_fib_net_exit()
1570 struct hlist_head *head = &net->ipv4.fib_table_hash[i]; in ip_fib_net_exit()
1585 kfree(net->ipv4.fib_table_hash); in ip_fib_net_exit()
1594 atomic_set(&net->ipv4.fib_num_tclassid_users, 0); in fib_net_init()