6#ifndef NETLINK_LINK_BONDING_H_
7#define NETLINK_LINK_BONDING_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
void rtnl_link_bond_set_mode(struct rtnl_link *link, uint8_t mode)
Set bond mode.
void rtnl_link_bond_set_min_links(struct rtnl_link *link, uint32_t min_links)
Set the minimum number of member ports that must be up before marking the bond device as up.
int rtnl_link_bond_get_min_links(struct rtnl_link *link, uint32_t *min_links)
Get the minimum number of member ports that must be up before marking the bond device as up.
int rtnl_link_bond_get_miimon(struct rtnl_link *link, uint32_t *miimon)
Get MII monitoring interval.
void rtnl_link_bond_set_activeslave(struct rtnl_link *link, int active_slave)
Set active slave for bond.
int rtnl_link_bond_get_mode(struct rtnl_link *link, uint8_t *mode)
Get bond mode.
int rtnl_link_bond_get_hashing_type(struct rtnl_link *link, uint8_t *type)
Get hashing type.
int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int)
Add a link to a bond (enslave)
int rtnl_link_bond_add(struct nl_sock *, const char *, struct rtnl_link *)
Create a new kernel bonding device.
struct rtnl_link * rtnl_link_bond_alloc(void)
Allocate link object of type bond.
int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *, struct rtnl_link *)
Add a link to a bond (enslave)
int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *)
Release a link from a bond.
void rtnl_link_bond_set_hashing_type(struct rtnl_link *link, uint8_t type)
Set hashing type.
int rtnl_link_bond_release_ifindex(struct nl_sock *, int)
Release a link from a bond.
void rtnl_link_bond_set_miimon(struct rtnl_link *link, uint32_t miimon)
Set MII monitoring interval.
int rtnl_link_bond_get_activeslave(struct rtnl_link *link, int *active_slave)
Get active slave for bond.