Lines Matching refs:net
7 #include <net/net_namespace.h>
8 #include <net/fib_notifier.h>
9 #include <net/ip_fib.h>
19 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
25 net->ipv4.fib_seq++;
26 return call_fib_notifiers(net, event_type, info);
29 static unsigned int fib4_seq_read(struct net *net)
33 return net->ipv4.fib_seq + fib4_rules_seq_read(net);
36 static int fib4_dump(struct net *net, struct notifier_block *nb,
41 err = fib4_rules_dump(net, nb, extack);
45 return fib_notify(net, nb, extack);
55 int __net_init fib4_notifier_init(struct net *net)
59 net->ipv4.fib_seq = 0;
61 ops = fib_notifier_ops_register(&fib4_notifier_ops_template, net);
64 net->ipv4.notifier_ops = ops;
69 void __net_exit fib4_notifier_exit(struct net *net)
71 fib_notifier_ops_unregister(net->ipv4.notifier_ops);