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

libnl 3.12.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
13extern "C" {
14#endif
15
16extern struct rtnl_link *rtnl_link_ipvlan_alloc(void);
17
18extern int rtnl_link_is_ipvlan(struct rtnl_link *);
19
20extern char * rtnl_link_ipvlan_mode2str(int, char *, size_t);
21extern int rtnl_link_ipvlan_str2mode(const char *);
22
23extern int rtnl_link_ipvlan_set_mode(struct rtnl_link *,
24 uint16_t);
25extern 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:208
rtnl_link_ipvlan_get_mode
int rtnl_link_ipvlan_get_mode(struct rtnl_link *, uint16_t *out_mode)
Get IPVLAN Mode.
Definition ipvlan.c:227
rtnl_link_ipvlan_alloc
struct rtnl_link * rtnl_link_ipvlan_alloc(void)
Allocate link object of type IPVLAN.
Definition ipvlan.c:175
rtnl_link_is_ipvlan
int rtnl_link_is_ipvlan(struct rtnl_link *)
Check if link is a IPVLAN link.
Definition ipvlan.c:196
rtnl_link
Link object.
Definition nl-route.h:29