libnl  3.2.28
bonding.h
1 /*
2  * netlink/route/link/bonding.h Bonding Interface
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * Copyright (c) 2011-2013 Thomas Graf <tgraf@suug.ch>
10  */
11 
12 #ifndef NETLINK_LINK_BONDING_H_
13 #define NETLINK_LINK_BONDING_H_
14 
15 #include <netlink/netlink.h>
16 #include <netlink/route/link.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 extern struct rtnl_link *rtnl_link_bond_alloc(void);
23 
24 extern int rtnl_link_bond_add(struct nl_sock *, const char *,
25  struct rtnl_link *);
26 
27 extern int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int);
28 extern int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *,
29  struct rtnl_link *);
30 
31 extern int rtnl_link_bond_release_ifindex(struct nl_sock *, int);
32 extern int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif
39 
struct rtnl_link * rtnl_link_bond_alloc(void)
Allocate link object of type bond.
Definition: bonding.c:33
int rtnl_link_bond_add(struct nl_sock *, const char *, struct rtnl_link *)
Create a new kernel bonding device.
Definition: bonding.c:73
int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *, struct rtnl_link *)
Add a link to a bond (enslave)
Definition: bonding.c:164
int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *)
Release a link from a bond.
Definition: bonding.c:208
int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int)
Add a link to a bond (enslave)
Definition: bonding.c:108
int rtnl_link_bond_release_ifindex(struct nl_sock *, int)
Release a link from a bond.
Definition: bonding.c:184