• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * lib/route/link/dummy.c	Dummy Interfaces
3  *
4  *	This library is free software; you can redistribute it and/or
5  *	modify it under the terms of the GNU Lesser General Public
6  *	License as published by the Free Software Foundation version 2.1
7  *	of the License.
8  *
9  * Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
10  */
11 
12 /**
13  * @ingroup link
14  * @defgroup dummy Dummy
15  *
16  * @details
17  * \b Link Type Name: "dummy"
18  *
19  * @{
20  */
21 
22 #include <netlink-private/netlink.h>
23 #include <netlink/netlink.h>
24 #include <netlink-private/route/link/api.h>
25 
26 static struct rtnl_link_info_ops dummy_info_ops = {
27 	.io_name		= "dummy",
28 };
29 
dummy_init(void)30 static void __init dummy_init(void)
31 {
32 	rtnl_link_register_info(&dummy_info_ops);
33 }
34 
dummy_exit(void)35 static void __exit dummy_exit(void)
36 {
37 	rtnl_link_unregister_info(&dummy_info_ops);
38 }
39 
40 /** @} */
41