Lines Matching refs:ipv4
142 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list)
165 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup()
253 INIT_LIST_HEAD(&net->ipv4.mr_tables); in ipmr_rules_init()
265 net->ipv4.mr_rules_ops = ops; in ipmr_rules_init()
280 list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) { in ipmr_rules_exit()
284 fib_rules_unregister(net->ipv4.mr_rules_ops); in ipmr_rules_exit()
289 for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
293 return net->ipv4.mrt; in ipmr_get_table()
299 *mrt = net->ipv4.mrt; in ipmr_fib_lookup()
305 net->ipv4.mrt = ipmr_new_table(net, RT_TABLE_DEFAULT); in ipmr_rules_init()
306 return net->ipv4.mrt ? 0 : -ENOMEM; in ipmr_rules_init()
312 ipmr_free_table(net->ipv4.mrt); in ipmr_rules_exit()
313 net->ipv4.mrt = NULL; in ipmr_rules_exit()
346 list_add_tail_rcu(&mrt->list, &net->ipv4.mr_tables); in ipmr_new_table()
1264 net->ipv4.devconf_all); in mrtsock_destruct()
1318 net->ipv4.devconf_all); in ip_mroute_setsockopt()