diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-11-18 23:04:22 +0100 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-11-18 23:04:22 +0100 |
commit | c13d7d7f49b5cf4218b2a3ce0c2480015b2c9eef (patch) | |
tree | e611c49bfbcb7c7ce56906b76a64052e30f4ff15 | |
parent | 859f1fe60ae57d49c6a475117f3fbbfc46293448 (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>
-rw-r--r-- | trafgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |