libnl  3.2.3
/build/buildd/libnl3-3.2.3/lib/route/link/dummy.c
00001 /*
00002  * lib/route/link/dummy.c       Dummy Interfaces
00003  *
00004  *      This library is free software; you can redistribute it and/or
00005  *      modify it under the terms of the GNU Lesser General Public
00006  *      License as published by the Free Software Foundation version 2.1
00007  *      of the License.
00008  *
00009  * Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 /**
00013  * @ingroup link
00014  * @defgroup dummy Dummy
00015  *
00016  * @details
00017  * \b Link Type Name: "dummy"
00018  *
00019  * @{
00020  */
00021 
00022 #include <netlink-local.h>
00023 #include <netlink/netlink.h>
00024 #include <netlink/route/link/api.h>
00025 
00026 static struct rtnl_link_info_ops dummy_info_ops = {
00027         .io_name                = "dummy",
00028 };
00029 
00030 static void __init dummy_init(void)
00031 {
00032         rtnl_link_register_info(&dummy_info_ops);
00033 }
00034 
00035 static void __exit dummy_exit(void)
00036 {
00037         rtnl_link_unregister_info(&dummy_info_ops);
00038 }
00039 
00040 /** @} */