]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute2: fix 'ip xfrm monitor all' command
authorNathan Harold <nharold@google.com>
Wed, 30 May 2018 19:11:32 +0000 (12:11 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 1 Jun 2018 19:57:26 +0000 (15:57 -0400)
commitb8e7799003e414fbe4f6f865500a3efffcfbbf67
tree8c6dd0bb3b1280cb036e7c600567c6ee3eba2230
parent4c3493689ed3683ef59855cc47ed586b55e7ee6f
iproute2: fix 'ip xfrm monitor all' command

Currently, calling 'ip xfrm monitor all' will
actually invoke the 'all-nsid' command because the
soft-match for 'all-nsid' occurs before the precise
match for 'all'. This patch rearranges the checks
so that the 'all' command, itself an alias for
invoking 'ip xfrm monitor' with no argument, can
be called consistent with the syntax for other ip
commands that accept an 'all'.

Signed-off-by: Nathan Harold <nharold@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/xfrm_monitor.c