net: core: To send ARP probe when neighbor state is NUD_STALE
authorRavinder Konka <rkonka@codeaurora.org>
Wed, 10 Dec 2014 11:46:31 +0000 (17:16 +0530)
committerDanny Wood <danwood76@gmail.com>
Fri, 15 Mar 2019 08:05:16 +0000 (08:05 +0000)
Send an ARP probe to the connected client when the neighbor
state moves to NUD_STALE. This triggers the neighbor state
to move back to NUD_REACHABLE if the ARP request is resolved
and prevents a RTM_DELNEIGH from being triggered

Change-Id: I4d17c8f24d47931524904d0db74fa812a4f235f6
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
net/core/neighbour.c

index ddef0a92a08911652ec736dac451ade5a01ef0bc..ea8c273a6af5d20c1499687821c757598da1d8a6 100644 (file)
@@ -949,7 +949,7 @@ static void neigh_timer_handler(unsigned long arg)
                if (!mod_timer(&neigh->timer, next))
                        neigh_hold(neigh);
        }
-       if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE)) {
+       if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE | NUD_STALE)) {
                neigh_probe(neigh);
        } else {
 out: