bonding link module

This commit is contained in:
Thomas Graf 2011-07-21 16:38:04 +02:00
parent 50074732af
commit 4d2383620b
2 changed files with 40 additions and 0 deletions

View file

@ -58,6 +58,7 @@ libnl_route_la_SOURCES = \
\
route/link/api.c route/link/vlan.c route/link/dummy.c \
route/link/bridge.c route/link/inet6.c route/link/inet.c \
route/link/bonding.c \
\
route/qdisc/blackhole.c route/qdisc/cbq.c route/qdisc/dsmark.c \
route/qdisc/fifo.c route/qdisc/htb.c route/qdisc/netem.c \

39
lib/route/link/bonding.c Normal file
View file

@ -0,0 +1,39 @@
/*
* lib/route/link/bonding.c Bonding Link Module
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
*/
/**
* @ingroup link
* @defgroup bonding Bonding
*
* <a href="../route.html#_links_network_devices">Link Documentation</a>
*
* @{
*/
#include <netlink-local.h>
#include <netlink/netlink.h>
#include <netlink/route/link/api.h>
static struct rtnl_link_info_ops bonding_info_ops = {
.io_name = "bond",
};
static void __init bonding_init(void)
{
rtnl_link_register_info(&bonding_info_ops);
}
static void __exit bonding_exit(void)
{
rtnl_link_unregister_info(&bonding_info_ops);
}
/** @} */