2 * lib/route/sch/blackhole.c Blackhole Qdisc
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
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
14 * @defgroup blackhole Blackhole
18 #include <netlink-local.h>
19 #include <netlink-tc.h>
20 #include <netlink/netlink.h>
21 #include <netlink/route/qdisc.h>
22 #include <netlink/route/qdisc-modules.h>
24 static struct rtnl_qdisc_ops blackhole_ops = {
25 .qo_kind = "blackhole",
28 static void __init blackhole_init(void)
30 rtnl_qdisc_register(&blackhole_ops);
33 static void __exit blackhole_exit(void)
35 rtnl_qdisc_unregister(&blackhole_ops);