dect
/
libnl
Archived
13
0
Fork 0

dummy interface support

This commit is contained in:
Thomas Graf 2011-04-15 15:31:22 +02:00
parent e81814a29f
commit 5a6610190a
2 changed files with 39 additions and 1 deletions

View File

@ -56,7 +56,7 @@ libnl_route_la_SOURCES = \
route/cls/ematch/nbyte.c route/cls/ematch/text.c \
route/cls/ematch/meta.c \
\
route/link/api.c route/link/vlan.c \
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/qdisc/blackhole.c route/qdisc/cbq.c route/qdisc/dsmark.c \

38
lib/route/link/dummy.c Normal file
View File

@ -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);
}
/** @} */