diff options
author | skuklinski <skuklinski@gmail.com> | 2015-10-20 12:56:06 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-10-21 16:58:35 (GMT) |
commit | 0aca70083e51d97d0102c73852d31625f75c942b (patch) | |
tree | aebec1fdf767260de28701d21caaf647467395f1 | |
parent | 015899fd49c3444b502e801b6d394fc3ce1f57a4 (diff) | |
download | libnl-0aca70083e51d97d0102c73852d31625f75c942b.zip libnl-0aca70083e51d97d0102c73852d31625f75c942b.tar.gz libnl-0aca70083e51d97d0102c73852d31625f75c942b.tar.bz2 |
route/link: IFLA_VLAN_PROTOCOL added to vlan_put_attrs
Fixes: 430eb4004ab7f93fd840e9836d4bc9220d3c406d
https://github.com/thom311/libnl/issues/90
https://github.com/thom311/libnl/pull/91
-rw-r--r-- | lib/route/link/vlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/link/vlan.c b/lib/route/link/vlan.c index 4aa5c29..017796f 100644 --- a/lib/route/link/vlan.c +++ b/lib/route/link/vlan.c @@ -279,6 +279,9 @@ static int vlan_put_attrs(struct nl_msg *msg, struct rtnl_link *link) if (vi->vi_mask & VLAN_HAS_ID) NLA_PUT_U16(msg, IFLA_VLAN_ID, vi->vi_vlan_id); + if (vi->vi_mask & VLAN_HAS_PROTOCOL) + NLA_PUT_U16(msg, IFLA_VLAN_PROTOCOL, vi->vi_protocol); + if (vi->vi_mask & VLAN_HAS_FLAGS) { struct ifla_vlan_flags flags = { .flags = vi->vi_flags, |