diff options
Diffstat (limited to 'net/decnet/dn_fib.c')
-rw-r--r-- | net/decnet/dn_fib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/decnet/dn_fib.c b/net/decnet/dn_fib.c index 7eaf98799729..102d6106a942 100644 --- a/net/decnet/dn_fib.c +++ b/net/decnet/dn_fib.c | |||
@@ -505,6 +505,14 @@ static int dn_fib_check_attr(struct rtmsg *r, struct rtattr **rta) | |||
505 | return 0; | 505 | return 0; |
506 | } | 506 | } |
507 | 507 | ||
508 | static inline u32 rtm_get_table(struct rtattr **rta, u8 table) | ||
509 | { | ||
510 | if (rta[RTA_TABLE - 1]) | ||
511 | table = nla_get_u32((struct nlattr *) rta[RTA_TABLE - 1]); | ||
512 | |||
513 | return table; | ||
514 | } | ||
515 | |||
508 | static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 516 | static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
509 | { | 517 | { |
510 | struct net *net = sock_net(skb->sk); | 518 | struct net *net = sock_net(skb->sk); |