diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-03-29 16:59:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 13:58:35 -0400 |
commit | 67b61f6c130a05b2cd4c3dfded49a751ff42c534 (patch) | |
tree | 2a4deef870f2c01f36a27cfb7501e726d833880c /net/ipv6/sit.c | |
parent | 930345ea630405aa6e6f42efcb149c3f360a6b67 (diff) | |
download | op-kernel-dev-67b61f6c130a05b2cd4c3dfded49a751ff42c534.zip op-kernel-dev-67b61f6c130a05b2cd4c3dfded49a751ff42c534.tar.gz |
netlink: implement nla_get_in_addr and nla_get_in6_addr
Those are counterparts to nla_put_in_addr and nla_put_in6_addr.
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
-rw-r--r-- | net/ipv6/sit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 0e2bb53..e6b9f51 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1530,8 +1530,7 @@ static bool ipip6_netlink_6rd_parms(struct nlattr *data[], if (data[IFLA_IPTUN_6RD_PREFIX]) { ret = true; - nla_memcpy(&ip6rd->prefix, data[IFLA_IPTUN_6RD_PREFIX], - sizeof(struct in6_addr)); + ip6rd->prefix = nla_get_in6_addr(data[IFLA_IPTUN_6RD_PREFIX]); } if (data[IFLA_IPTUN_6RD_RELAY_PREFIX]) { |