libnl: /data/src/libnl3/include/netlink/route/link/bonding.h Source File

libnl 3.7.0

bonding.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2011-2013 Thomas Graf <tgraf@suug.ch>
4 */
5
6 #ifndef NETLINK_LINK_BONDING_H_
7 #define NETLINK_LINK_BONDING_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/route/link.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 extern struct rtnl_link *rtnl_link_bond_alloc(void);
17
18 extern int rtnl_link_bond_add(struct nl_sock *, const char *,
19 struct rtnl_link *);
20
21 extern int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int);
22 extern int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *,
23 struct rtnl_link *);
24
25 extern int rtnl_link_bond_release_ifindex(struct nl_sock *, int);
26 extern int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *);
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif
33
rtnl_link_bond_alloc
struct rtnl_link * rtnl_link_bond_alloc(void)
Allocate link object of type bond.
Definition: bonding.c:27
rtnl_link_bond_enslave_ifindex
int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int)
Add a link to a bond (enslave)
Definition: bonding.c:101
rtnl_link_bond_add
int rtnl_link_bond_add(struct nl_sock *, const char *, struct rtnl_link *)
Create a new kernel bonding device.
Definition: bonding.c:66
rtnl_link_bond_enslave
int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *, struct rtnl_link *)
Add a link to a bond (enslave)
Definition: bonding.c:157
rtnl_link_bond_release
int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *)
Release a link from a bond.
Definition: bonding.c:201
rtnl_link_bond_release_ifindex
int rtnl_link_bond_release_ifindex(struct nl_sock *, int)
Release a link from a bond.
Definition: bonding.c:177
rtnl_link
Link object.