mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 09:20:32 +01:00
netlink: fix build on libnl1/2
This commit is contained in:
parent
0e6de5d2cf
commit
261d760a8b
1 changed files with 8 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Copyright (C) 2011 Caixa Magica Software.
|
||||
* Copyright (C) 2011 Red Hat, Inc.
|
||||
* Copyright (C) 2011 - 2012 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#ifndef NM_NETLINK_COMPAT_H
|
||||
|
|
@ -251,6 +251,13 @@ rtnl_link_vlan_set_id (struct rtnl_link *l, int id)
|
|||
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
|
||||
rtnl_link_vlan_set_flags (struct rtnl_link *l, unsigned int flags)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue