patch-2.4.0-test7 linux/net/core/neighbour.c

Next file: linux/net/core/sock.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/net/core/neighbour.c linux/net/core/neighbour.c
@@ -832,7 +832,8 @@
 	if (lladdr != neigh->ha) {
 		memcpy(&neigh->ha, lladdr, dev->addr_len);
 		neigh_update_hhs(neigh);
-		neigh->confirmed = jiffies - (neigh->parms->base_reachable_time<<1);
+		if (!(new&NUD_CONNECTED))
+			neigh->confirmed = jiffies - (neigh->parms->base_reachable_time<<1);
 #ifdef CONFIG_ARPD
 		notify = 1;
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)