libnl
3.2.24-rc1
Main Page
Related Pages
Modules
Data Structures
blackhole.c
1
/*
2
* lib/route/qdisc/blackhole.c Blackhole Qdisc
3
*
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
7
* of the License.
8
*
9
* Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
10
*/
11
12
/**
13
* @ingroup qdisc
14
* @defgroup qdisc_blackhole Blackhole
15
* @{
16
*/
17
18
#include <netlink-private/netlink.h>
19
#include <netlink/netlink.h>
20
#include <netlink-private/route/tc-api.h>
21
22
static
struct
rtnl_tc_ops blackhole_ops = {
23
.to_kind =
"blackhole"
,
24
.to_type = RTNL_TC_TYPE_QDISC,
25
};
26
27
static
void
__init blackhole_init(
void
)
28
{
29
rtnl_tc_register
(&blackhole_ops);
30
}
31
32
static
void
__exit blackhole_exit(
void
)
33
{
34
rtnl_tc_unregister
(&blackhole_ops);
35
}
36
37
/** @} */
lib
route
qdisc
blackhole.c
Generated on Tue Jan 21 2014 20:35:46 for libnl by
1.8.3.1