Lines Matching full:ipv6
3 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules
20 #include <net/ipv6.h>
70 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup()
80 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup()
83 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup()
85 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup()
86 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup()
97 if (net->ipv6.fib6_has_custom_rules) { in fib6_rule_lookup()
109 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup()
118 net, net->ipv6.fib6_local_tbl, fl6, skb, flags); in fib6_rule_lookup()
119 if (rt != net->ipv6.ip6_null_entry && rt->dst.error != -EAGAIN) in fib6_rule_lookup()
123 net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup()
130 dst_hold(&net->ipv6.ip6_null_entry->dst); in fib6_rule_lookup()
131 return &net->ipv6.ip6_null_entry->dst; in fib6_rule_lookup()
188 if (!err && res->f6i != net->ipv6.fib6_null_entry) in fib6_rule_action_alt()
214 rt = net->ipv6.ip6_null_entry; in __fib6_rule_action()
219 rt = net->ipv6.ip6_blk_hole_entry; in __fib6_rule_action()
223 rt = net->ipv6.ip6_prohibit_entry; in __fib6_rule_action()
236 if (rt != net->ipv6.ip6_null_entry) { in __fib6_rule_action()
404 net->ipv6.fib6_rules_require_fldissect++; in fib6_rule_configure()
406 net->ipv6.fib6_has_custom_rules = true; in fib6_rule_configure()
416 if (net->ipv6.fib6_rules_require_fldissect && in fib6_rule_delete()
418 net->ipv6.fib6_rules_require_fldissect--; in fib6_rule_delete()
533 net->ipv6.fib6_rules_ops = ops; in fib6_rules_net_init()
534 net->ipv6.fib6_rules_require_fldissect = 0; in fib6_rules_net_init()
549 fib_rules_unregister(net->ipv6.fib6_rules_ops); in fib6_rules_net_exit_batch()