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
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
int rtnl_link_ipvlan_set_mode(struct rtnl_link *, uint16_t)
Set IPVLAN MODE.
Definition: ipvlan.c:205
int rtnl_link_ipvlan_get_mode(struct rtnl_link *, uint16_t *out_mode)
Get IPVLAN Mode.
Definition: ipvlan.c:224
struct rtnl_link * rtnl_link_ipvlan_alloc(void)
Allocate link object of type IPVLAN.
Definition: ipvlan.c:172
int rtnl_link_is_ipvlan(struct rtnl_link *)
Check if link is a IPVLAN link.
Definition: ipvlan.c:193