Skip to contentSkip to conversation

ip xfrm: Allow to specify "all" option for monitor

PATCH New Vadim Kochan 1 participant 1 message Feb 14, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip xfrm: Allow to specify "all" option for monitor

From: Vadim Kochan <[email protected]>

Just to be aligned with the usage output.

---
 ip/xfrm_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/xfrm_monitor.c +1 -1
index 79453e4..8aa6f49 100644
@@ -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);
 		}
Signature · 1 line
2.2.2