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/ipv6/addrconf.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/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index fa36a677490f..15794fdaf028 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -544,8 +544,7 @@ static const struct nla_policy devconf_ipv6_policy[NETCONFA_MAX+1] = { | |||
544 | }; | 544 | }; |
545 | 545 | ||
546 | static int inet6_netconf_get_devconf(struct sk_buff *in_skb, | 546 | static int inet6_netconf_get_devconf(struct sk_buff *in_skb, |
547 | struct nlmsghdr *nlh, | 547 | struct nlmsghdr *nlh) |
548 | void *arg) | ||
549 | { | 548 | { |
550 | struct net *net = sock_net(in_skb->sk); | 549 | struct net *net = sock_net(in_skb->sk); |
551 | struct nlattr *tb[NETCONFA_MAX+1]; | 550 | struct nlattr *tb[NETCONFA_MAX+1]; |
@@ -3578,7 +3577,7 @@ static const struct nla_policy ifa_ipv6_policy[IFA_MAX+1] = { | |||
3578 | }; | 3577 | }; |
3579 | 3578 | ||
3580 | static int | 3579 | static int |
3581 | inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 3580 | inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh) |
3582 | { | 3581 | { |
3583 | struct net *net = sock_net(skb->sk); | 3582 | struct net *net = sock_net(skb->sk); |
3584 | struct ifaddrmsg *ifm; | 3583 | struct ifaddrmsg *ifm; |
@@ -3644,7 +3643,7 @@ static int inet6_addr_modify(struct inet6_ifaddr *ifp, u8 ifa_flags, | |||
3644 | } | 3643 | } |
3645 | 3644 | ||
3646 | static int | 3645 | static int |
3647 | inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 3646 | inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh) |
3648 | { | 3647 | { |
3649 | struct net *net = sock_net(skb->sk); | 3648 | struct net *net = sock_net(skb->sk); |
3650 | struct ifaddrmsg *ifm; | 3649 | struct ifaddrmsg *ifm; |
@@ -3983,8 +3982,7 @@ static int inet6_dump_ifacaddr(struct sk_buff *skb, struct netlink_callback *cb) | |||
3983 | return inet6_dump_addr(skb, cb, type); | 3982 | return inet6_dump_addr(skb, cb, type); |
3984 | } | 3983 | } |
3985 | 3984 | ||
3986 | static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh, | 3985 | static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh) |
3987 | void *arg) | ||
3988 | { | 3986 | { |
3989 | struct net *net = sock_net(in_skb->sk); | 3987 | struct net *net = sock_net(in_skb->sk); |
3990 | struct ifaddrmsg *ifm; | 3988 | struct ifaddrmsg *ifm; |