• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * netlink/route/link/ipvlan.h		IPVLAN interface
3  *
4  *	This library is free software; you can redistribute it and/or
5  *	modify it under the terms of the GNU Lesser General Public
6  *	License as published by the Free Software Foundation version 2.1
7  *	of the License.
8  *
9  * Copyright (c) 2015 Cong Wang <cwang@twopensource.com>
10  */
11 
12 #ifndef NETLINK_LINK_IPVLAN_H_
13 #define NETLINK_LINK_IPVLAN_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/route/link.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 extern struct rtnl_link *rtnl_link_ipvlan_alloc(void);
23 
24 extern int		rtnl_link_is_ipvlan(struct rtnl_link *);
25 
26 extern char *		rtnl_link_ipvlan_mode2str(int, char *, size_t);
27 extern int		rtnl_link_ipvlan_str2mode(const char *);
28 
29 extern int		rtnl_link_ipvlan_set_mode(struct rtnl_link *,
30 			                           uint16_t);
31 extern int		rtnl_link_ipvlan_get_mode(struct rtnl_link *, uint16_t *out_mode);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
38