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

Commit b7092165 authored by Sridhar Ancha's avatar Sridhar Ancha Committed by Mohammed Javid
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 avatarMohammed Javid <mjavid@codeaurora.org>
Acked-by: default avatarSudhanshu Singh <sudhsing@qti.qualcomm.com>
parent f797d13b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -941,7 +941,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: