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.
This commit is contained in:
parent
08e3aa9c11
commit
b846a386dc
|
@ -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 @@ ATF_TC_BODY(simpleping, tc)
|
|||
break;
|
||||
}
|
||||
|
||||
usleep(500000);
|
||||
|
||||
netcfg_rump_if(ifname, "1.1.1.20", "255.255.255.0");
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue