Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 628f96b0 authored by Sridhar Ancha's avatar Sridhar Ancha Committed by Gerrit - the friendly Code Review server
Browse files

net: core: To send ARP probe when neighbor state is NUD_STALE



Featurizing to 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: I27aba004a180dfbff5b1fcee2d04047c8523fb8a
Signed-off-by: default avatarSridhar Ancha <sancha@codeaurora.org>
parent f295d9e7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -956,7 +956,11 @@ 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 | NUD_STALE)) {

	if (neigh_probe_enable) {
		if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE | NUD_STALE))
			neigh_probe(neigh);
	} else if (neigh->nud_state & (NUD_INCOMPLETE | NUD_PROBE)) {
		neigh_probe(neigh);
	} else {
out: