diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-03-29 10:59:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 13:58:35 -0400 |
commit | 67b61f6c130a05b2cd4c3dfded49a751ff42c534 (patch) | |
tree | 2a4deef870f2c01f36a27cfb7501e726d833880c /net/ipv6/fib6_rules.c | |
parent | 930345ea630405aa6e6f42efcb149c3f360a6b67 (diff) |
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/fib6_rules.c')
-rw-r--r-- | net/ipv6/fib6_rules.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index d313bfd88512..61fb184b818d 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c | |||
@@ -199,12 +199,10 @@ static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb, | |||
199 | } | 199 | } |
200 | 200 | ||
201 | if (frh->src_len) | 201 | if (frh->src_len) |
202 | nla_memcpy(&rule6->src.addr, tb[FRA_SRC], | 202 | rule6->src.addr = nla_get_in6_addr(tb[FRA_SRC]); |
203 | sizeof(struct in6_addr)); | ||
204 | 203 | ||
205 | if (frh->dst_len) | 204 | if (frh->dst_len) |
206 | nla_memcpy(&rule6->dst.addr, tb[FRA_DST], | 205 | rule6->dst.addr = nla_get_in6_addr(tb[FRA_DST]); |
207 | sizeof(struct in6_addr)); | ||
208 | 206 | ||
209 | rule6->src.plen = frh->src_len; | 207 | rule6->src.plen = frh->src_len; |
210 | rule6->dst.plen = frh->dst_len; | 208 | rule6->dst.plen = frh->dst_len; |