Lines Matching refs:ipv4

65 				&net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]);  in fib4_rules_init()
67 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init()
87 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table()
96 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table()
99 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table()
106 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
122 head = &net->ipv4.fib_table_hash[h]; in fib_get_table()
138 rcu_assign_pointer(net->ipv4.fib_main, new); in fib_replace_table()
141 rcu_assign_pointer(net->ipv4.fib_default, new); in fib_replace_table()
190 struct hlist_head *head = &net->ipv4.fib_table_hash[h]; in fib_flush()
443 if (net->ipv4.fib_has_custom_local_routes || in fib_validate_source()
931 net->ipv4.fib_has_custom_local_routes = true; in inet_rtm_newroute()
1067 head = &net->ipv4.fib_table_hash[h]; in inet_dump_fib()
1428 nlmsg_unicast(net->ipv4.fibnl, skb, portid); in nl_fib_input()
1441 net->ipv4.fibnl = sk; in nl_fib_lookup_init()
1447 netlink_kernel_release(net->ipv4.fibnl); in nl_fib_lookup_exit()
1448 net->ipv4.fibnl = NULL; in nl_fib_lookup_exit()
1473 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1478 atomic_inc(&net->ipv4.dev_addr_genid); in fib_inetaddr_event()
1520 atomic_inc(&net->ipv4.dev_addr_genid); in fib_netdev_event()
1570 net->ipv4.sysctl_fib_multipath_hash_fields = in ip_fib_net_init()
1577 net->ipv4.fib_table_hash = kzalloc(size, GFP_KERNEL); in ip_fib_net_init()
1578 if (!net->ipv4.fib_table_hash) { in ip_fib_net_init()
1589 kfree(net->ipv4.fib_table_hash); in ip_fib_net_init()
1601 RCU_INIT_POINTER(net->ipv4.fib_main, NULL); in ip_fib_net_exit()
1602 RCU_INIT_POINTER(net->ipv4.fib_default, NULL); in ip_fib_net_exit()
1610 struct hlist_head *head = &net->ipv4.fib_table_hash[i]; in ip_fib_net_exit()
1625 kfree(net->ipv4.fib_table_hash); in ip_fib_net_exit()
1634 atomic_set(&net->ipv4.fib_num_tclassid_users, 0); in fib_net_init()