summaryrefslogtreecommitdiff
path: root/net/ax25
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-05-09 09:16:48 +0400
committerDavid S. Miller <davem@davemloft.net>2014-05-13 20:43:05 +0400
commit2176d5d41891753774f648b67470398a5acab584 (patch)
treefdcde5ed570234a4a440b550293cb3a7653229d6 /net/ax25
parentc8965932a2e3b70197ec02c6741c29460279e2a8 (diff)
downloadlinux-2176d5d41891753774f648b67470398a5acab584.tar.xz
neigh: set nud_state to NUD_INCOMPLETE when probing router reachability
Since commit 7e98056964("ipv6: router reachability probing"), a router falls into NUD_FAILED will be probed. Now if function rt6_select() selects a router which neighbour state is NUD_FAILED, and at the same time function rt6_probe() changes the neighbour state to NUD_PROBE, then function dst_neigh_output() can directly send packets, but actually the neighbour still is unreachable. If we set nud_state to NUD_INCOMPLETE instead NUD_PROBE, packets will not be sent out until the neihbour is reachable. In addition, because the route should be probes with a single NS, so we must set neigh->probes to neigh_max_probes(), then the neigh timer timeout and function neigh_timer_handler() will not send other NS Messages. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions