Debian Codegraph @

lib/route/qdisc/blackhole.c

raw
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2003-2011 Thomas Graf <[email protected]>
4 */
5
6 /**
7 * @ingroup qdisc
8 * @defgroup qdisc_blackhole Blackhole
9 * @{
10 */
11
12 #include "nl-default.h"
13
14 #include <netlink/netlink.h>
15
16 #include "tc-api.h"
17
18 static struct rtnl_tc_ops blackhole_ops = {
19 .to_kind = "blackhole",
20 .to_type = RTNL_TC_TYPE_QDISC,
21 };
22
23 static void _nl_init blackhole_init(void)
24 {
25 rtnl_tc_register(&blackhole_ops);
26 }
27
28 static void _nl_exit blackhole_exit(void)
29 {
30 rtnl_tc_unregister(&blackhole_ops);
31 }
32
33 /** @} */