ipv6: judge the accept_ra_defrtr before calling rt6_route_rcv
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Tue, 26 Nov 2013 07:46:56 +0000 (15:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Dec 2013 21:00:38 +0000 (16:00 -0500)
commit30e56918dd1e6d64350661f186657f6a6f2646e6
tree8ff9e816cd40e17b5bf0d232448bb993e148310a
parenta45299e72737c528975546a0680cace5d7364d27
ipv6: judge the accept_ra_defrtr before calling rt6_route_rcv

when dealing with a RA message, if accept_ra_defrtr is false,
the kernel will not add the default route, and then deal with
the following route information options. Unfortunately, those
options maybe contain default route, so let's judge the
accept_ra_defrtr before calling rt6_route_rcv.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c