]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d67741ad6336d3cdbfee167062b9b32366120a7
tree8ff9e816cd40e17b5bf0d232448bb993e148310a
parentcfff8aed4b20df574fec7d26db6961e0cfe768da
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