libnl 3.7.0
|
Functions | |
struct rtnl_link * | rtnl_link_team_alloc (void) |
Allocate link object of type team. More... | |
int | rtnl_link_team_add (struct nl_sock *sock, const char *name, struct rtnl_link *opts) |
Create a new kernel team device. More... | |
Link Type Name: "team"
Team Documentation (Netlink Routing Development Guide)
struct rtnl_link * rtnl_link_team_alloc | ( | void | ) |
Allocate link object of type team.
Definition at line 27 of file team.c.
References rtnl_link_alloc(), rtnl_link_put(), and rtnl_link_set_type().
Referenced by rtnl_link_team_add().
int rtnl_link_team_add | ( | struct nl_sock * | sock, |
const char * | name, | ||
struct rtnl_link * | opts | ||
) |
Create a new kernel team device.
sock | netlink socket |
name | name of team device or NULL |
opts | team options (currently unused) |
Creates a new team device in the kernel. If no name is provided, the kernel will automatically pick a name of the form "type%d" (e.g. team0, vlan1, etc.)
The opts argument is currently unused. In the future, it may be used to carry additional team options to be set when creating the team device.
Definition at line 66 of file team.c.
References rtnl_link_add(), rtnl_link_get_name(), rtnl_link_put(), rtnl_link_set_name(), and rtnl_link_team_alloc().