libnl
3.2.3
|
00001 /* 00002 * netlink/route/link/bonding.h Bonding Interface 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation version 2.1 00007 * of the License. 00008 * 00009 * Copyright (c) 2011 Thomas Graf <tgraf@suug.ch> 00010 */ 00011 00012 #ifndef NETLINK_LINK_BONDING_H_ 00013 #define NETLINK_LINK_BONDING_H_ 00014 00015 #include <netlink/netlink.h> 00016 #include <netlink/route/link.h> 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 extern int rtnl_link_bond_add(struct nl_sock *, const char *, 00023 struct rtnl_link *); 00024 00025 extern int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int); 00026 extern int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *, 00027 struct rtnl_link *); 00028 00029 extern int rtnl_link_bond_release_ifindex(struct nl_sock *, int); 00030 extern int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *); 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif 00035 00036 #endif 00037