libnl 3.10.0
blackhole.c
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
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
18static struct rtnl_tc_ops blackhole_ops = {
19 .to_kind = "blackhole",
20 .to_type = RTNL_TC_TYPE_QDISC,
21};
22
23static void _nl_init blackhole_init(void)
24{
25 rtnl_tc_register(&blackhole_ops);
26}
27
28static void _nl_exit blackhole_exit(void)
29{
30 rtnl_tc_unregister(&blackhole_ops);
31}
32
33/** @} */
int rtnl_tc_register(struct rtnl_tc_ops *)
Register a traffic control module.
Definition tc.c:1018
void rtnl_tc_unregister(struct rtnl_tc_ops *)
Unregister a traffic control module.
Definition tc.c:1052