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>
This commit is contained in:

committed by
David S. Miller

parent
930345ea63
commit
67b61f6c13
@@ -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]) {
|
||||
|
Reference in New Issue
Block a user