summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-09 09:13:23 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-04-09 09:13:23 +0200
commit5be3139e456d85b18e166643ce1636b0ecdbccc3 (patch)
tree652eda31abe436b4ce573cd21fdfdc81051d380b
parent991ceb9a073b54700c8145694884a53cc7551b7a (diff)
trafgen: do not care if device is running yet
E.g. when executing trafgen on tap devices, trafgen will complain that it is not up and running although it was brought up. Remove this usability restriction and let the kernel decide if it may send the packets or not. Reported-by: Aimal Khan <aimal.khan98@gmail.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-rw-r--r--trafgen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/trafgen.c b/trafgen.c
index fb41f45..4e670ed 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -1012,8 +1012,6 @@ int main(int argc, char **argv)
panic("No configuration file given!\n");
if (device_mtu(ctx.device) == 0)
panic("This is no networking device!\n");
- if (!ctx.rfraw && device_up_and_running(ctx.device) == 0)
- panic("Networking device not running!\n");
register_signal(SIGINT, signal_handler);
register_signal(SIGHUP, signal_handler);