libnl/lib/route/link
Thomas Haller 5981a39583 route: update kernel header snmp.h and fix inet6_parse_protinfo() after kernel API breakage
Take 'include/uapi/linux/snmp.h' from current kernel v3.13
(commit d8ec26d7f8287f5788a494f56e8814210f0e64be).

The header file added new values for IPSTATS_MIB_* and ICMP6_MIB_*, but
more importantly, the kernel broke user space API by reordering enum values in
IPSTATS_MIB_*. Add a workaround when parsing IFLA_PROTINFO trying to
be compatible with both older and newer kernels.

Note that this workaround might fail for some specific kernel versions by
assuming the old enum value mapping, although the kernel version already
contains the API change. In this case rtnl_link_get_stat() mixes up
values.

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-03-21 12:38:45 +01:00
..
api.c rtnl_link_af_unregister: fix locking 2013-05-08 13:48:24 +02:00
bonding.c bond: Provide rtnl_link_bond_alloc() 2013-02-14 12:48:00 +01:00
bridge.c bridge: add rtnl_link_add_bridge() function 2014-01-14 14:37:58 +01:00
can.c can: Fix nested message creation in can_put_attrs() 2013-02-01 12:24:37 +01:00
dummy.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
inet.c route: detect missing cfgid in rtnl_link_inet_get_conf() 2014-03-21 12:27:23 +01:00
inet6.c route: update kernel header snmp.h and fix inet6_parse_protinfo() after kernel API breakage 2014-03-21 12:38:45 +01:00
macvlan.c Add macvlan support 2013-05-16 17:04:08 +02:00
veth.c route: add libnl name prefix to global variable link_policy 2014-01-02 11:56:56 +01:00
vlan.c vlan: Provide rtnl_link_vlan_alloc() 2013-02-14 12:42:22 +01:00
vxlan.c Add VXLAN support. 2013-08-04 15:43:54 +09:00