diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-11-25 19:14:14 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-12-07 10:41:35 (GMT) |
commit | 1b2c247571c748a422864f9122bd16cb20e37f83 (patch) | |
tree | dfa3486784e211e81eb94af44b84962e5accbb15 /include | |
parent | 7bbd09d9410f5fc0d22f00db26306234a50217a2 (diff) | |
download | libnl-1b2c247571c748a422864f9122bd16cb20e37f83.zip libnl-1b2c247571c748a422864f9122bd16cb20e37f83.tar.gz libnl-1b2c247571c748a422864f9122bd16cb20e37f83.tar.bz2 |
link: add AF operation to append attributes to a GETLINK message
Upcoming bridge patch wants to add IFLA_EXT_MASK attribute to RTM_GETLINK
requests to retrieve VLAN data. Expand request message to a full ifinfomsg
header and call to hook to append attributes if it exists for an address
family.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
[thaller@redhat.com: fix memleak in link_request_update()]
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-private/route/link/api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink-private/route/link/api.h b/include/netlink-private/route/link/api.h index 85f83f3..2d56658 100644 --- a/include/netlink-private/route/link/api.h +++ b/include/netlink-private/route/link/api.h @@ -119,6 +119,10 @@ struct rtnl_link_af_ops int (*ao_fill_af)(struct rtnl_link *, struct nl_msg *msg, void *); + /** Called for GETLINK message to the kernel. Used to append + * link address family specific attributes to the request message. */ + int (*ao_get_af)(struct nl_msg *msg); + /** Dump address family specific link attributes */ void (*ao_dump[NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *, |