]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: also allow token to be set when device not ready
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 9 Apr 2013 03:47:15 +0000 (03:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2013 17:12:23 +0000 (13:12 -0400)
commitab706c2a4cf81933cde49f89f00a2467ef3c1f10
treed05ae6821dbd6a46db1fee600aa04b6b871ce186
parentf4bf87daa91946284dee8bd395e2c73c9cc8d800
net: ipv6: also allow token to be set when device not ready

When we set the iftoken in inet6_set_iftoken(), we return -EINVAL
when the device does not have flag IF_READY. This is however not
necessary and rather an artificial usability barrier, since we
simply can set the token despite that, and in case the device is
ready, we just send out our rs, otherwise ifup et al. will do
this for us anyway.

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>
net/ipv6/addrconf.c