diff options
author | Nicolas PLANEL <nicolas.planel@enovance.com> | 2013-10-11 15:52:22 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-10-22 12:20:41 (GMT) |
commit | 978bb85c7aa7dcd5d7fd3e4123be2b6e7b7094a2 (patch) | |
tree | 93aaf919db9b073aa940a549da61233fd477a496 /include | |
parent | 07669b0b80902a166686ccb8135f971205a01281 (diff) | |
download | libnl-978bb85c7aa7dcd5d7fd3e4123be2b6e7b7094a2.zip libnl-978bb85c7aa7dcd5d7fd3e4123be2b6e7b7094a2.tar.gz libnl-978bb85c7aa7dcd5d7fd3e4123be2b6e7b7094a2.tar.bz2 |
python: add bridge flags API
Add flags set/get methods aim to change bridge flags :
o hairpin_mode
o bpdu_guard
o root_block
o fast_leave
Signed-off-by: Nicolas PLANEL <nicolas.planel@enovance.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/route/link/bridge.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink/route/link/bridge.h b/include/netlink/route/link/bridge.h index 71dcc24..74d0e62 100644 --- a/include/netlink/route/link/bridge.h +++ b/include/netlink/route/link/bridge.h @@ -48,6 +48,9 @@ extern int rtnl_link_bridge_unset_flags(struct rtnl_link *, unsigned int); extern int rtnl_link_bridge_set_flags(struct rtnl_link *, unsigned int); extern int rtnl_link_bridge_get_flags(struct rtnl_link *); +extern char * rtnl_link_bridge_flags2str(int, char *, size_t); +extern int rtnl_link_bridge_str2flags(const char *); + #ifdef __cplusplus } #endif |