]> granicus.if.org Git - libnl/commit
lib/route: Allow override of IFLA_AF_SPEC nesting
authorJef Oliver <jef.oliver@intel.com>
Thu, 1 Sep 2016 00:27:08 +0000 (17:27 -0700)
committerThomas Haller <thaller@redhat.com>
Sat, 24 Sep 2016 11:51:29 +0000 (13:51 +0200)
commitab17f9803d08ee5c1b3e4618da170c8cb2da3eb5
tree4c6af7f505a8637f19fa5e9972772d940830fbd1
parent9be1849eabcd10b0105c9887d98c008dd5cb4461
lib/route: Allow override of IFLA_AF_SPEC nesting

This patch adds the ability to override nesting into an AF specific
attribute. An example of this is the bridge module.

Regular Nesting:
[IFLA_AF_SPEC]
    [AF_INET]
        [AF_INET_ATTRS]

Bridge Nesting:
[IFLA_AF_SPEC]
    [AF_BRIDGE_ATTRS]

This patch adds ao_fill_af_no_nest to struct rtnl_link_af_ops.
When set to non-zero, this will override the nested AF attribute
and allow nesting of attributes directly into IFLA_AF_SPEC.

Signed-off-by: Jef Oliver <jef.oliver@intel.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
include/netlink-private/route/link/api.h
lib/route/link.c