libnl: /data/src/libnl3/include/netlink/route/link/ipvlan.h Source File

libnl 3.7.0

ipvlan.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2015 Cong Wang <cwang@twopensource.com>
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
rtnl_link_ipvlan_set_mode
int rtnl_link_ipvlan_set_mode(struct rtnl_link *, uint16_t)
Set IPVLAN MODE.
Definition: ipvlan.c:205
rtnl_link_ipvlan_get_mode
int rtnl_link_ipvlan_get_mode(struct rtnl_link *, uint16_t *out_mode)
Get IPVLAN Mode.
Definition: ipvlan.c:224
rtnl_link_ipvlan_alloc
struct rtnl_link * rtnl_link_ipvlan_alloc(void)
Allocate link object of type IPVLAN.
Definition: ipvlan.c:172
rtnl_link_is_ipvlan
int rtnl_link_is_ipvlan(struct rtnl_link *)
Check if link is a IPVLAN link.
Definition: ipvlan.c:193
rtnl_link
Link object.