diff options
author | Thomas Graf <tgraf@suug.ch> | 2012-06-27 01:36:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-28 00:36:44 +0200 |
commit | 4c3af034fafeb7269176bf1310c9bcff0b9fd9bb (patch) | |
tree | e10a4be17401c237afc0b84edd386404174c4d05 /net/decnet/dn_fib.c | |
parent | decnet: Do not use RTA_PUT() macros (diff) | |
download | linux-4c3af034fafeb7269176bf1310c9bcff0b9fd9bb.tar.xz linux-4c3af034fafeb7269176bf1310c9bcff0b9fd9bb.zip |
netlink: Get rid of obsolete rtnetlink macros
Removes all RTA_GET*() and RTA_PUT*() variations, as well as the
the unused rtattr_strcmp(). Get rid of rtm_get_table() by moving
it to its only user decnet.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
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) return 0; } +static inline u32 rtm_get_table(struct rtattr **rta, u8 table) +{ + if (rta[RTA_TABLE - 1]) + table = nla_get_u32((struct nlattr *) rta[RTA_TABLE - 1]); + + return table; +} + static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) { struct net *net = sock_net(skb->sk); |