dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/lib/route/qdisc/blackhole.c

38 lines
790 B
C

/*
* lib/route/qdisc/blackhole.c Blackhole Qdisc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
*/
/**
* @ingroup qdisc
* @defgroup qdisc_blackhole Blackhole
* @{
*/
#include <netlink-private/netlink.h>
#include <netlink/netlink.h>
#include <netlink-private/route/tc-api.h>
static struct rtnl_tc_ops blackhole_ops = {
.to_kind = "blackhole",
.to_type = RTNL_TC_TYPE_QDISC,
};
static void __init blackhole_init(void)
{
rtnl_tc_register(&blackhole_ops);
}
static void __exit blackhole_exit(void)
{
rtnl_tc_unregister(&blackhole_ops);
}
/** @} */