[IPV6] NDISC: Fix is_router flag setting.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 22 Sep 2006 21:44:53 +0000 (14:44 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:20:27 +0000 (15:20 -0700)
commitfc26d0abd5afd2b5268a7dbdbf8be1095ce5703e
treebfb7beca3f0286920e5518541e10c380a6fb8ac6
parent8814c4b533817df825485ff32ce6ac406c3a54d1
[IPV6] NDISC: Fix is_router flag setting.

We did not send appropriate IsRouter flag if the forwarding setting is
positive even value.  Let's give 1/0 value to ndisc_send_na().

Also, existing users of ndisc_send_na() give 0/1 to override,
we can omit redundant operation in that function.

Bug hinted by Nicolas Dichtel <nicolas.dichtel@6wind.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c