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()
252 INIT_LIST_HEAD(&net->ipv4.mr_tables); in ipmr_rules_init()
264 net->ipv4.mr_rules_ops = ops; in ipmr_rules_init()
279 list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) { in ipmr_rules_exit()
283 fib_rules_unregister(net->ipv4.mr_rules_ops); in ipmr_rules_exit()
288 for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
292 return net->ipv4.mrt; in ipmr_get_table()
298 *mrt = net->ipv4.mrt; in ipmr_fib_lookup()
304 net->ipv4.mrt = ipmr_new_table(net, RT_TABLE_DEFAULT); in ipmr_rules_init()
305 return net->ipv4.mrt ? 0 : -ENOMEM; in ipmr_rules_init()
311 ipmr_free_table(net->ipv4.mrt); in ipmr_rules_exit()
312 net->ipv4.mrt = NULL; in ipmr_rules_exit()
345 list_add_tail_rcu(&mrt->list, &net->ipv4.mr_tables); in ipmr_new_table()
1255 net->ipv4.devconf_all); in mrtsock_destruct()
1309 net->ipv4.devconf_all); in ip_mroute_setsockopt()