Lines Matching refs:ipv4
119 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \
121 list_empty(&net->ipv4.mr_tables))
129 ret = list_entry_rcu(net->ipv4.mr_tables.next, in ipmr_mr_table_iter()
135 if (&ret->list == &net->ipv4.mr_tables) in ipmr_mr_table_iter()
174 err = fib_rules_lookup(net->ipv4.mr_rules_ops, in ipmr_fib_lookup()
259 INIT_LIST_HEAD(&net->ipv4.mr_tables); in ipmr_rules_init()
271 net->ipv4.mr_rules_ops = ops; in ipmr_rules_init()
288 list_for_each_entry_safe(mrt, next, &net->ipv4.mr_tables, list) { in ipmr_rules_exit()
292 fib_rules_unregister(net->ipv4.mr_rules_ops); in ipmr_rules_exit()
313 for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
319 return net->ipv4.mrt; in ipmr_mr_table_iter()
325 return net->ipv4.mrt; in ipmr_get_table()
333 *mrt = net->ipv4.mrt; in ipmr_fib_lookup()
344 net->ipv4.mrt = mrt; in ipmr_rules_init()
351 ipmr_free_table(net->ipv4.mrt); in ipmr_rules_exit()
352 net->ipv4.mrt = NULL; in ipmr_rules_exit()
396 list_add_tail_rcu(&mrt->list, &net->ipv4.mr_tables); in ipmr_new_table_set()
648 &net->ipv4.ipmr_seq); in call_ipmr_vif_entry_notifiers()
656 &mfc->_c, tb_id, &net->ipv4.ipmr_seq); in call_ipmr_mfc_entry_notifiers()
1360 net->ipv4.devconf_all); in mrtsock_destruct()
1424 net->ipv4.devconf_all); in ip_mroute_setsockopt()
3187 return READ_ONCE(net->ipv4.ipmr_seq) + ipmr_rules_seq_read(net); in ipmr_seq_read()
3208 net->ipv4.ipmr_seq = 0; in ipmr_notifier_init()
3213 net->ipv4.ipmr_notifier_ops = ops; in ipmr_notifier_init()
3220 fib_notifier_ops_unregister(net->ipv4.ipmr_notifier_ops); in ipmr_notifier_exit()
3221 net->ipv4.ipmr_notifier_ops = NULL; in ipmr_notifier_exit()