libnl 1.1
|
00001 /* 00002 * lib/route/sch/blackhole.c Blackhole Qdisc 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) 2003-2006 Thomas Graf <tgraf@suug.ch> 00010 */ 00011 00012 /** 00013 * @ingroup qdisc_api 00014 * @defgroup blackhole Blackhole 00015 * @{ 00016 */ 00017 00018 #include <netlink-local.h> 00019 #include <netlink-tc.h> 00020 #include <netlink/netlink.h> 00021 #include <netlink/route/qdisc.h> 00022 #include <netlink/route/qdisc-modules.h> 00023 00024 static struct rtnl_qdisc_ops blackhole_ops = { 00025 .qo_kind = "blackhole", 00026 }; 00027 00028 static void __init blackhole_init(void) 00029 { 00030 rtnl_qdisc_register(&blackhole_ops); 00031 } 00032 00033 static void __exit blackhole_exit(void) 00034 { 00035 rtnl_qdisc_unregister(&blackhole_ops); 00036 } 00037 00038 /** @} */