mirror_iproute2/lib
Nicolas Dichtel d652ccbf81 netns: allow to dump and monitor nsid
Two commands are added:
 - ip netns list-id
 - ip monitor nsid

A cache is also added to remember the association between the iproute2 netns
name (from /var/run/netns/) and the nsid.
To avoid interfering with the rth socket, a new rtnl socket (rtnsh) is used to
get nsid (we may send rtnl request during listing on rth).

Example:
$ ip netns list-id
nsid 0 (iproute2 netns name: foo)
$ ip monitor nsid
Deleted nsid 0 (iproute2 netns name: foo)
nsid 16 (iproute2 netns name: bar)

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
2015-04-20 10:02:38 -07:00
..
dnet_ntop.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
dnet_pton.c dnet: fix strict aliasing warnings 2010-07-23 12:30:48 -07:00
inet_proto.c lib: make string arguments const 2013-02-12 11:39:07 -08:00
ipx_ntop.c include needed files 2012-12-23 11:49:06 -08:00
ipx_pton.c include needed files 2012-12-23 11:49:06 -08:00
libgenl.c iproute2: GENL: merge GENL_REQUEST and GENL_INITIALIZER 2012-09-17 15:46:45 -07:00
libnetlink.c libnetlink: add parse_rtattr_one_nested helper 2015-01-07 15:11:35 -08:00
ll_addr.c make the addr argument of ll_addr_n2a const 2015-03-24 15:45:23 -07:00
ll_map.c netns: allow to dump and monitor nsid 2015-04-20 10:02:38 -07:00
ll_proto.c ip: iplink_vlan: add 802.1ad support 2013-06-21 08:59:24 -07:00
ll_types.c ll_types: add netlink ARPHRD 2014-08-29 00:13:22 -07:00
Makefile tc class: Show class names from file 2015-03-15 12:27:40 -07:00
mpls_ntop.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
mpls_pton.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00
names.c tc class: Ignore if default class name file does not exist 2015-04-07 08:31:56 -07:00
namespace.c lib: Exec func on each netns 2015-02-05 10:28:19 -08:00
rt_names.c rt_names can't be const 2014-12-20 11:36:54 -08:00
utils.c add basic mpls support to iproute 2015-03-24 15:45:23 -07:00