summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-05-01 13:22:05 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2015-05-01 13:22:05 +0200
commit9a3101878c03ef0b197a81907cadca7e56a6acd6 (patch)
tree5fb1dec8646caeb6a5a20ae9df666924034b8beb
parente3ed8dd880c72353ada692a1ad0ae68fbe3e2821 (diff)
netsniff-ng: alias lb to rr as well
After all it's round robin mode. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r--netsniff-ng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index f447864..6cd0cf4 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1278,7 +1278,8 @@ int main(int argc, char **argv)
case 'K':
if (!strncmp(optarg, "hash", strlen("hash")))
ctx.fanout_type = PACKET_FANOUT_HASH;
- else if (!strncmp(optarg, "lb", strlen("lb")))
+ else if (!strncmp(optarg, "lb", strlen("lb")) ||
+ !strncmp(optarg, "rr", strlen("rr")))
ctx.fanout_type = PACKET_FANOUT_LB;
else if (!strncmp(optarg, "cpu", strlen("cpu")))
ctx.fanout_type = PACKET_FANOUT_CPU;