netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net_test_tools] route_bench: Fix bug in DST_ITERATE option
@ 2014-11-24  8:13 Vijay Subramanian
  2014-11-24 21:09 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Vijay Subramanian @ 2014-11-24  8:13 UTC (permalink / raw)
  To: netdev; +Cc: davem, Vijay Subramanian

While setting option for dst_addr_stride, flags should be set for
FLAG_DST_ITERATE not FLAG_SRC_ITERATE.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
---
 route_bench.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/route_bench.c b/route_bench.c
index eb91dcf..22cbd2a 100644
--- a/route_bench.c
+++ b/route_bench.c
@@ -292,7 +292,7 @@ int main(int argc, char **argv, char **envp)
 			break;
 		case 'e':
 			sscanf(optarg, "%u", &s->dst_addr_stride);
-			s->flags |= FLAG_SRC_ITERATE;
+			s->flags |= FLAG_DST_ITERATE;
 			break;
 		case 'f':
 			s->dst_addr_limit = inet_addr(optarg);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-25  5:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24  8:13 [PATCH net_test_tools] route_bench: Fix bug in DST_ITERATE option Vijay Subramanian
2014-11-24 21:09 ` David Miller
2014-11-25  1:18   ` Vijay Subramanian
2014-11-25  5:58     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).