diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-03-21 03:45:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-22 10:31:16 -0400 |
commit | 661d2967b3f1b34eeaa7e212e7b9bbe8ee072b59 (patch) | |
tree | 66090f1be05a40962838114d66cb085875f58c8a /net/core/neighbour.c | |
parent | 58d7d8f9b20ee6f883532b952f246e4289fe06eb (diff) |
rtnetlink: Remove passing of attributes into rtnl_doit functions
With decnet converted, we can finally get rid of rta_buf and its
computations around it. It also gets rid of the minimal header
length verification since all message handlers do that explicitly
anyway.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r-- | net/core/neighbour.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 3863b8f639c5..c72a646d9f44 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -1613,7 +1613,7 @@ int neigh_table_clear(struct neigh_table *tbl) | |||
1613 | } | 1613 | } |
1614 | EXPORT_SYMBOL(neigh_table_clear); | 1614 | EXPORT_SYMBOL(neigh_table_clear); |
1615 | 1615 | ||
1616 | static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 1616 | static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh) |
1617 | { | 1617 | { |
1618 | struct net *net = sock_net(skb->sk); | 1618 | struct net *net = sock_net(skb->sk); |
1619 | struct ndmsg *ndm; | 1619 | struct ndmsg *ndm; |
@@ -1677,7 +1677,7 @@ out: | |||
1677 | return err; | 1677 | return err; |
1678 | } | 1678 | } |
1679 | 1679 | ||
1680 | static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 1680 | static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh) |
1681 | { | 1681 | { |
1682 | struct net *net = sock_net(skb->sk); | 1682 | struct net *net = sock_net(skb->sk); |
1683 | struct ndmsg *ndm; | 1683 | struct ndmsg *ndm; |
@@ -1955,7 +1955,7 @@ static const struct nla_policy nl_ntbl_parm_policy[NDTPA_MAX+1] = { | |||
1955 | [NDTPA_LOCKTIME] = { .type = NLA_U64 }, | 1955 | [NDTPA_LOCKTIME] = { .type = NLA_U64 }, |
1956 | }; | 1956 | }; |
1957 | 1957 | ||
1958 | static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 1958 | static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh) |
1959 | { | 1959 | { |
1960 | struct net *net = sock_net(skb->sk); | 1960 | struct net *net = sock_net(skb->sk); |
1961 | struct neigh_table *tbl; | 1961 | struct neigh_table *tbl; |