2
* lib/route/qdisc/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-2011 Thomas Graf <tgraf@suug.ch>
14
* @defgroup qdisc_blackhole Blackhole
18
#include <netlink-local.h>
19
#include <netlink/netlink.h>
20
#include <netlink/route/tc-api.h>
22
static struct rtnl_tc_ops blackhole_ops = {
23
.to_kind = "blackhole",
24
.to_type = RTNL_TC_TYPE_QDISC,
27
static void __init blackhole_init(void)
29
rtnl_tc_register(&blackhole_ops);
32
static void __exit blackhole_exit(void)
34
rtnl_tc_unregister(&blackhole_ops);