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

Commit b9f06c10 authored by Paras Singh Jain's avatar Paras Singh Jain Committed by Gerrit - the friendly Code Review server
Browse files

net: core: Dont send ARP probes for NUD_PERMANENET



Whenever a new neighbour is added with the state
NUD_PERMANENT, the ARP probing is removed since
it is not needed.

Change-Id: Id92b24d1b99b8deff91a8e105f7310efc2f21b39
Signed-off-by: default avatarParas Singh Jain <parassin@codeaurora.org>
parent 6df2a9ae
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1448,7 +1448,8 @@ struct neighbour *neigh_event_ns(struct neigh_table *tbl,
						 lladdr || !dev->addr_len);
	if (neigh) {
		if (neigh_probe_enable) {
			if (!(neigh->nud_state == NUD_REACHABLE)) {
			if (neigh->nud_state != NUD_REACHABLE &&
			    neigh->nud_state != NUD_PERMANENT) {
				neigh_update(neigh, lladdr, NUD_STALE,
				NEIGH_UPDATE_F_OVERRIDE, 0);
				write_lock(&neigh->lock);