From e93d897420201d0959298f6096e2bfe1ccd83274 Mon Sep 17 00:00:00 2001 From: Ravinder Konka Date: Wed, 10 Dec 2014 17:16:31 +0530 Subject: [PATCH] net: core: To send ARP probe when neighbor state is NUD_STALE 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 Signed-off-by: Skylar Chang --- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ddef0a92a08..ea8c273a6af 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -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: -- 2.20.1