]> git.proxmox.com Git - mirror_iproute2.git/commit
ipmonitor: match user option 'all' before 'all-nsid'
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 3 Feb 2016 00:53:40 +0000 (16:53 -0800)
committerStephen Hemminger <shemming@brocade.com>
Fri, 5 Feb 2016 00:45:02 +0000 (11:45 +1100)
commita9390c921acc1b6dfb8c7b8087041c65b54facce
tree233923015980793c546f13b3fc70112fcb617852
parent2486337aace9df195eb3d01fb08b665958ce311d
ipmonitor: match user option 'all' before 'all-nsid'

'ip monitor all' is broken on older kernels.
This patch fixes 'ip monitor all' to match
'all' and not 'all-nsid'.

It moves parsing arg 'all-nsid' to after parsing
'all'.

Before:
$ip monitor all
NETLINK_LISTEN_ALL_NSID: Protocol not available

After:
$ip monitor all
[NEIGH]Deleted 10.0.0.1 dev eth1 lladdr c4:54:44:4f:b2:dd STALE

Fixes: 449b824ad196 ("ipmonitor: allows to monitor in several netns")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
ip/ipmonitor.c