Lines Matching refs:net
32 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, in fib6_rule_lookup() argument
40 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup()
46 dst_hold(&net->ipv6.ip6_null_entry->dst); in fib6_rule_lookup()
47 return &net->ipv6.ip6_null_entry->dst; in fib6_rule_lookup()
56 struct net *net = rule->fr_net; in fib6_rule_action() local
65 rt = net->ipv6.ip6_null_entry; in fib6_rule_action()
70 rt = net->ipv6.ip6_blk_hole_entry; in fib6_rule_action()
74 rt = net->ipv6.ip6_prohibit_entry; in fib6_rule_action()
78 table = fib6_get_table(net, rule->table); in fib6_rule_action()
84 rt = lookup(net, table, flp6, flags); in fib6_rule_action()
85 if (rt != net->ipv6.ip6_null_entry) { in fib6_rule_action()
96 if (ipv6_dev_get_saddr(net, in fib6_rule_action()
188 struct net *net = sock_net(skb->sk); in fib6_rule_configure() local
195 if (fib6_new_table(net, rule->table) == NULL) { in fib6_rule_configure()
290 static int __net_init fib6_rules_net_init(struct net *net) in fib6_rules_net_init() argument
295 ops = fib_rules_register(&fib6_rules_ops_template, net); in fib6_rules_net_init()
307 net->ipv6.fib6_rules_ops = ops; in fib6_rules_net_init()
316 static void __net_exit fib6_rules_net_exit(struct net *net) in fib6_rules_net_exit() argument
319 fib_rules_unregister(net->ipv6.fib6_rules_ops); in fib6_rules_net_exit()