libnl/lib/route/qdisc/blackhole.c

38 lines
790 B
C
Raw Permalink Normal View History

2007-09-15 01:28:01 +02:00
/*
2011-03-21 16:47:42 +01:00
* lib/route/qdisc/blackhole.c Blackhole Qdisc
2007-09-15 01:28:01 +02:00
*
* 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>
2007-09-15 01:28:01 +02:00
*/
/**
* @ingroup qdisc
* @defgroup qdisc_blackhole Blackhole
2007-09-15 01:28:01 +02:00
* @{
*/
#include <netlink-private/netlink.h>
2007-09-15 01:28:01 +02:00
#include <netlink/netlink.h>
#include <netlink-private/route/tc-api.h>
2007-09-15 01:28:01 +02:00
static struct rtnl_tc_ops blackhole_ops = {
.to_kind = "blackhole",
.to_type = RTNL_TC_TYPE_QDISC,
2007-09-15 01:28:01 +02:00
};
static void __init blackhole_init(void)
{
rtnl_tc_register(&blackhole_ops);
2007-09-15 01:28:01 +02:00
}
static void __exit blackhole_exit(void)
{
rtnl_tc_unregister(&blackhole_ops);
2007-09-15 01:28:01 +02:00
}
/** @} */