| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2015 Cong Wang <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef NETLINK_LINK_IPVLAN_H_ |
| 7 |
#define NETLINK_LINK_IPVLAN_H_ |
| 8 |
|
| 9 |
#include <netlink/netlink.h> |
| 10 |
#include <netlink/route/link.h> |
| 11 |
|
| 12 |
#ifdef __cplusplus |
| 13 |
extern "C" { |
| 14 |
#endif |
| 15 |
|
| 16 |
extern struct rtnl_link *rtnl_link_ipvlan_alloc(void); |
| 17 |
|
| 18 |
extern int rtnl_link_is_ipvlan(struct rtnl_link *); |
| 19 |
|
| 20 |
extern char * rtnl_link_ipvlan_mode2str(int, char *, size_t); |
| 21 |
extern int rtnl_link_ipvlan_str2mode(const char *); |
| 22 |
|
| 23 |
extern int rtnl_link_ipvlan_set_mode(struct rtnl_link *, |
| 24 |
uint16_t); |
| 25 |
extern int rtnl_link_ipvlan_get_mode(struct rtnl_link *, uint16_t *out_mode); |
| 26 |
|
| 27 |
#ifdef __cplusplus |
| 28 |
} |
| 29 |
#endif |
| 30 |
|
| 31 |
#endif |