From: Thomas Graf Date: Thu, 21 Jul 2011 14:38:04 +0000 (+0200) Subject: bonding link module X-Git-Tag: libnl3_1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d2383620b195af055c42f9b8ced3c3668a2c505;p=libnl bonding link module --- diff --git a/lib/Makefile.am b/lib/Makefile.am index b7f2e31..ddda933 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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 \ diff --git a/lib/route/link/bonding.c b/lib/route/link/bonding.c new file mode 100644 index 0000000..c53bf52 --- /dev/null +++ b/lib/route/link/bonding.c @@ -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 + */ + +/** + * @ingroup link + * @defgroup bonding Bonding + * + * Link Documentation + * + * @{ + */ + +#include +#include +#include + +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); +} + +/** @} */