From 9a3101878c03ef0b197a81907cadca7e56a6acd6 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Fri, 1 May 2015 13:22:05 +0200 Subject: netsniff-ng: alias lb to rr as well After all it's round robin mode. Signed-off-by: Daniel Borkmann --- netsniff-ng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf