diff options
author | Michael Braun <michael-dev@fami-braun.de> | 2013-05-16 14:54:13 (GMT) |
---|---|---|
committer | Michael Braun <michael-dev@fami-braun.de> | 2013-05-16 15:04:08 (GMT) |
commit | c76393e2037d78eb60c32f95b26f5b1e5b9422a6 (patch) | |
tree | 05e4c9aa66477a014112572793b214c1d5fba992 /python | |
parent | 807fddc4cd9ecb12ba64e1b7fa26d86b6c2f19b0 (diff) | |
download | libnl-c76393e2037d78eb60c32f95b26f5b1e5b9422a6.zip libnl-c76393e2037d78eb60c32f95b26f5b1e5b9422a6.tar.gz libnl-c76393e2037d78eb60c32f95b26f5b1e5b9422a6.tar.bz2 |
Add macvlan support
This patch add support for kernel macvlan interfaces.
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Diffstat (limited to 'python')
-rw-r--r-- | python/netlink/route/capi.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/netlink/route/capi.i b/python/netlink/route/capi.i index 8ac114b..949a5ed 100644 --- a/python/netlink/route/capi.i +++ b/python/netlink/route/capi.i @@ -3,6 +3,7 @@ #include <netlink/route/rtnl.h> #include <netlink/route/link.h> #include <netlink/route/link/vlan.h> +#include <netlink/route/link/macvlan.h> #include <netlink/route/link/inet.h> #include <netlink/route/tc.h> @@ -169,6 +170,21 @@ extern uint32_t *rtnl_link_vlan_get_ingress_map(struct rtnl_link *); extern int rtnl_link_vlan_set_egress_map(struct rtnl_link *, uint32_t, int); extern struct vlan_map *rtnl_link_vlan_get_egress_map(struct rtnl_link *, int *); +/* <netlink/route/link/macvlan.h> */ + +%cstring_output_maxsize(char *buf, size_t len) +extern struct rtnl_link *rtnl_link_macvlan_alloc(void); +extern int rtnl_link_is_macvlan(struct rtnl_link *); +extern char * rtnl_link_macvlan_mode2str(int, char *, size_t); +extern int rtnl_link_macvlan_str2mode(const char *); +extern char * rtnl_link_macvlan_flags2str(int, char *, size_t); +extern int rtnl_link_macvlan_str2flags(const char *); +extern int rtnl_link_macvlan_set_mode(struct rtnl_link *, uint32_t); +extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *); +extern int rtnl_link_macvlan_set_flags(struct rtnl_link *, uint16_t); +extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *, uint16_t); +extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *); + /* <netlink/route/link/inet.h> */ %cstring_output_maxsize(char *buf, size_t len) extern const char *rtnl_link_inet_devconf2str(int, char *buf, size_t len); |