diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-09 03:47:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-09 13:12:23 -0400 |
commit | 914faa147bd2d086ed7257ad785d74cfe48d30ad (patch) | |
tree | 747f2f1af9fa487c84cdd9e287598f12c610a895 /net/ipv6 | |
parent | 67a366064a913dfecc02729b3bd3f9ab9e75470c (diff) |
net: ipv6: minor: use in6addr_any in token init
Since we check for !ipv6_addr_any(&in6_dev->token) in
addrconf_prefix_rcv(), make the token initialization on
device setup more intuitive by using in6addr_any as an
initializer.
Suggested-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 65d8139d60c5..645bf317019f 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -422,7 +422,7 @@ static struct inet6_dev *ipv6_add_dev(struct net_device *dev) ipv6_regen_rndid((unsigned long) ndev); } #endif - memset(ndev->token.s6_addr, 0, sizeof(ndev->token.s6_addr)); + ndev->token = in6addr_any; if (netif_running(dev) && addrconf_qdisc_ok(dev)) ndev->if_flags |= IF_READY; |