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)
commitfc403832f7bd94014fe3d965e0652a857160f1c9
treed05ae6821dbd6a46db1fee600aa04b6b871ce186
parent914faa147bd2d086ed7257ad785d74cfe48d30ad
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