diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-07-21 14:38:04 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-07-21 14:38:04 (GMT) |
commit | 4d2383620b195af055c42f9b8ced3c3668a2c505 (patch) | |
tree | aef248df0df7d3e044f725f9a430f8343961b0b8 /lib/route/link/bonding.c | |
parent | 50074732af4fbfc0ca5ae4bb07e971bc9e222126 (diff) | |
download | libnl-4d2383620b195af055c42f9b8ced3c3668a2c505.zip libnl-4d2383620b195af055c42f9b8ced3c3668a2c505.tar.gz libnl-4d2383620b195af055c42f9b8ced3c3668a2c505.tar.bz2 |
bonding link module
Diffstat (limited to 'lib/route/link/bonding.c')
-rw-r--r-- | lib/route/link/bonding.c | 39 |
1 files changed, 39 insertions, 0 deletions
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 <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); +} + +/** @} */ |