summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-11-18 23:04:22 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-11-18 23:04:22 +0100
commitc13d7d7f49b5cf4218b2a3ce0c2480015b2c9eef (patch)
treee611c49bfbcb7c7ce56906b76a64052e30f4ff15 /trafgen.c
parent859f1fe60ae57d49c6a475117f3fbbfc46293448 (diff)
trafgen: don't bother about device going down, just continue sending
If we loose carrier, don't bother about panic'ing, but continue sending! Only exit in case we're doing a smoke test. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen.c b/trafgen.c
index ba0b96b..e502fff 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -564,8 +564,8 @@ retry:
sched_yield();
goto retry;
}
-
- panic("Sendto error: %s!\n", strerror(errno));
+ if (ctx->smoke_test)
+ panic("Sendto error: %s!\n", strerror(errno));
}
tx_bytes += packets[i].len;