Commit 261d760a authored by Jiří Klimeš's avatar Jiří Klimeš
Browse files

netlink: fix build on libnl1/2

parent 0e6de5d2
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* *
* Copyright (C) 2011 Caixa Magica Software. * Copyright (C) 2011 Caixa Magica Software.
* Copyright (C) 2011 Red Hat, Inc. * Copyright (C) 2011 - 2012 Red Hat, Inc.
*/ */
#ifndef NM_NETLINK_COMPAT_H #ifndef NM_NETLINK_COMPAT_H
...@@ -251,6 +251,13 @@ rtnl_link_vlan_set_id (struct rtnl_link *l, int id) ...@@ -251,6 +251,13 @@ rtnl_link_vlan_set_id (struct rtnl_link *l, int id)
return -NLE_OPNOTSUPP; return -NLE_OPNOTSUPP;
} }
static inline int
rtnl_link_vlan_get_id (struct rtnl_link *l)
{
/* VLAN only in libnl3 */
return -NLE_OPNOTSUPP;
}
static inline int static inline int
rtnl_link_vlan_set_flags (struct rtnl_link *l, unsigned int flags) rtnl_link_vlan_set_flags (struct rtnl_link *l, unsigned int flags)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment