]> git.proxmox.com Git - mirror_iproute2.git/commit - lib/libnetlink.c
libnetlink: add parse_rtattr_one_nested helper
authorJiri Pirko <jiri@resnulli.us>
Tue, 6 Jan 2015 16:23:45 +0000 (17:23 +0100)
committerStephen Hemminger <shemming@brocade.com>
Wed, 7 Jan 2015 23:11:35 +0000 (15:11 -0800)
commitdecbb4378c5fc40a5842a8e67bc218305accb454
tree2b8550912bf9afcd2004fa1fb2724ca033f68281
parentdd8fac8cee4093f766eb0e53a00bafb156ec71db
libnetlink: add parse_rtattr_one_nested helper

Sometimes, it is more convenient to get only one specific nested attribute by
type. For example for IFLA_AF_SPEC where type is address family (AF_INET6).
So add this helper for this purpose.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
include/libnetlink.h
lib/libnetlink.c