Lines Matching refs:ipv4
144 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list)
164 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup()
252 INIT_LIST_HEAD(&net->ipv4.mr_tables); in ipmr_rules_init()
264 net->ipv4.mr_rules_ops = ops; in ipmr_rules_init()
278 list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) { in ipmr_rules_exit()
282 fib_rules_unregister(net->ipv4.mr_rules_ops); in ipmr_rules_exit()
286 for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
290 return net->ipv4.mrt; in ipmr_get_table()
296 *mrt = net->ipv4.mrt; in ipmr_fib_lookup()
302 net->ipv4.mrt = ipmr_new_table(net, RT_TABLE_DEFAULT); in ipmr_rules_init()
303 return net->ipv4.mrt ? 0 : -ENOMEM; in ipmr_rules_init()
308 ipmr_free_table(net->ipv4.mrt); in ipmr_rules_exit()
340 list_add_tail_rcu(&mrt->list, &net->ipv4.mr_tables); in ipmr_new_table()
1250 net->ipv4.devconf_all); in mrtsock_destruct()
1304 net->ipv4.devconf_all); in ip_mroute_setsockopt()