.. | .. |
---|
9 | 9 | #include <net/netns/ipv4.h> |
---|
10 | 10 | #include <net/ip_fib.h> |
---|
11 | 11 | |
---|
12 | | -int call_fib4_notifier(struct notifier_block *nb, struct net *net, |
---|
| 12 | +int call_fib4_notifier(struct notifier_block *nb, |
---|
13 | 13 | enum fib_event_type event_type, |
---|
14 | 14 | struct fib_notifier_info *info) |
---|
15 | 15 | { |
---|
16 | 16 | info->family = AF_INET; |
---|
17 | | - return call_fib_notifier(nb, net, event_type, info); |
---|
| 17 | + return call_fib_notifier(nb, event_type, info); |
---|
18 | 18 | } |
---|
19 | 19 | |
---|
20 | 20 | int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, |
---|
.. | .. |
---|
34 | 34 | return net->ipv4.fib_seq + fib4_rules_seq_read(net); |
---|
35 | 35 | } |
---|
36 | 36 | |
---|
37 | | -static int fib4_dump(struct net *net, struct notifier_block *nb) |
---|
| 37 | +static int fib4_dump(struct net *net, struct notifier_block *nb, |
---|
| 38 | + struct netlink_ext_ack *extack) |
---|
38 | 39 | { |
---|
39 | 40 | int err; |
---|
40 | 41 | |
---|
41 | | - err = fib4_rules_dump(net, nb); |
---|
| 42 | + err = fib4_rules_dump(net, nb, extack); |
---|
42 | 43 | if (err) |
---|
43 | 44 | return err; |
---|
44 | 45 | |
---|
45 | | - fib_notify(net, nb); |
---|
46 | | - |
---|
47 | | - return 0; |
---|
| 46 | + return fib_notify(net, nb, extack); |
---|
48 | 47 | } |
---|
49 | 48 | |
---|
50 | 49 | static const struct fib_notifier_ops fib4_notifier_ops_template = { |
---|