From 18a4d22880a31dbf39076f77d2d898fa078b139e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 May 2007 10:43:06 +0000 Subject: r23139: use echo operations once a second in lockbench and openbench to ensure we detect IP takeover on servers (This used to be commit b5292a25edf1c071dea19877fb6b31f2501132ef) --- source4/torture/raw/lockbench.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/torture/raw/lockbench.c') diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 508ef88864..7ec8844cdc 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -257,6 +257,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te, printf("\r"); fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); + + /* send an echo on each interface to ensure it stays alive - this helps + with IP takeover */ + for (i=0;isession->transport, &p); + } } /* -- cgit