]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip xfrm: Allow to specify "all" option for monitor
authorVadim Kochan <vadim4j@gmail.com>
Sat, 14 Feb 2015 17:45:04 +0000 (19:45 +0200)
committerStephen Hemminger <shemming@brocade.com>
Sun, 22 Feb 2015 00:43:23 +0000 (16:43 -0800)
Just to be aligned with the usage output.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
ip/xfrm_monitor.c

index 79453e41d726ced6ef5ff1f1dfdee76778631788..8aa6f495012e6d2f03de184113910b470a2d3c8c 100644 (file)
@@ -374,7 +374,7 @@ int do_xfrm_monitor(int argc, char **argv)
                        groups = 0;
                } else if (matches(*argv, "help") == 0) {
                        usage();
-               } else {
+               } else if (strcmp(*argv, "all")) {
                        fprintf(stderr, "Argument \"%s\" is unknown, try \"ip xfrm monitor help\".\n", *argv);
                        exit(-1);
                }