diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-04-15 13:31:22 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-04-15 13:31:22 (GMT) |
commit | 5a6610190a56c9788b2ba982ae60c93022c6cde1 (patch) | |
tree | 6708d681603cc108b9ac5f709f02884b1b7df5e4 /lib/route/link/dummy.c | |
parent | e81814a29fb4a43035112e318cdcc8fb85a28cc8 (diff) | |
download | libnl-5a6610190a56c9788b2ba982ae60c93022c6cde1.zip libnl-5a6610190a56c9788b2ba982ae60c93022c6cde1.tar.gz libnl-5a6610190a56c9788b2ba982ae60c93022c6cde1.tar.bz2 |
dummy interface support
Diffstat (limited to 'lib/route/link/dummy.c')
-rw-r--r-- | lib/route/link/dummy.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/route/link/dummy.c b/lib/route/link/dummy.c new file mode 100644 index 0000000..b837f48 --- /dev/null +++ b/lib/route/link/dummy.c @@ -0,0 +1,38 @@ +/* + * lib/route/link/dummy.c Dummy Interfaces + * + * 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 dummy Dummy + * @brief + * + * @{ + */ + +#include <netlink-local.h> +#include <netlink/netlink.h> +#include <netlink/route/link/api.h> + +static struct rtnl_link_info_ops dummy_info_ops = { + .io_name = "dummy", +}; + +static void __init dummy_init(void) +{ + rtnl_link_register_info(&dummy_info_ops); +} + +static void __exit dummy_exit(void) +{ + rtnl_link_unregister_info(&dummy_info_ops); +} + +/** @} */ |