]> 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)
commit7793d3baee1029c998f18caf11b5ddcd980fc6a1
treed05ae6821dbd6a46db1fee600aa04b6b871ce186
parente43845b628cf577cb880ef3350ac7a97348699fb
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