Module Name:    src
Committed By:   pooka
Date:           Mon Aug 23 10:49:28 UTC 2010

Modified Files:
        src/tests/net/icmp: t_ping.c

Log Message:
Add a delay between startup of pinger and pingee here too.

XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent.  This causes original packet to never be sent by the
arpwhohas requestor.  If this rings a bell to someone, please let
me know.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/net/icmp/t_ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/icmp/t_ping.c
diff -u src/tests/net/icmp/t_ping.c:1.6 src/tests/net/icmp/t_ping.c:1.7
--- src/tests/net/icmp/t_ping.c:1.6	Wed Aug 18 21:23:48 2010
+++ src/tests/net/icmp/t_ping.c	Mon Aug 23 10:49:27 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ping.c,v 1.6 2010/08/18 21:23:48 pooka Exp $	*/
+/*	$NetBSD: t_ping.c,v 1.7 2010/08/23 10:49:27 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.6 2010/08/18 21:23:48 pooka Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.7 2010/08/23 10:49:27 pooka Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -84,6 +84,8 @@
 		break;
 	}
 
+	usleep(500000);
+
 	netcfg_rump_if(ifname, "1.1.1.20", "255.255.255.0");
 
 	/*

Reply via email to