]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58bd03be059e6204967fd4619f413f096b6a3bdd
tree924ce7d85aacf5b2cd1e7bdad677adf9c6be875d
parentc1727113d2b41a41181df87a1432961b4d5d1b2e
ipv6, token: allow for clearing the current device token

The original tokenized iid support implemented via e169cc7b90de ("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 0a5ef44b5e83 ("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: 0a5ef44b5e83 ("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