summaryrefslogtreecommitdiffstats
path: root/include/netlink-private
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-03-20 18:18:44 (GMT)
committerThomas Haller <thaller@redhat.com>2014-03-21 11:38:45 (GMT)
commit5981a39583ab65dca230a8ee70625626d9ec9fc8 (patch)
tree472d940794cc17a3fa8afe892ec7499cd380b9e0 /include/netlink-private
parent3584a7ab55cb93225a0216385b62fbe5331388cd (diff)
downloadlibnl-5981a39583ab65dca230a8ee70625626d9ec9fc8.zip
libnl-5981a39583ab65dca230a8ee70625626d9ec9fc8.tar.gz
libnl-5981a39583ab65dca230a8ee70625626d9ec9fc8.tar.bz2
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>
Diffstat (limited to 'include/netlink-private')
0 files changed, 0 insertions, 0 deletions