ipv6, token: allow for clearing the current device token
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 8 Apr 2016 13:55:00 +0000 (15:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 02:38:14 +0000 (22:38 -0400)
commit47e27d5e92c46a3a62d4dfd8895b1ddb8613f531
tree924ce7d85aacf5b2cd1e7bdad677adf9c6be875d
parentfafc4e1ea1a4c1eb13a30c9426fb799f5efacbc3
ipv6, token: allow for clearing the current device token

The original tokenized iid support implemented via f53adae4eae5 ("net: ipv6:
add tokenized interface identifier support") didn't allow for clearing a
device token as it was intended that this addressing mode was the only one
active for globally scoped IPv6 addresses. Later we relaxed that restriction
via 617fe29d45bd ("net: ipv6: only invalidate previously tokenized addresses"),
and we should also allow for clearing tokens as there's no good reason why
it shouldn't be allowed.

Fixes: 617fe29d45bd ("net: ipv6: only invalidate previously tokenized addresses")
Reported-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c