From c13d7d7f49b5cf4218b2a3ce0c2480015b2c9eef Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Mon, 18 Nov 2013 23:04:22 +0100 Subject: 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 --- trafgen.c | 4 ++-- 1 file 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; -- cgit v1.2.3-54-g00ecf