Logo Search packages:      
Sourcecode: libnl version File versions  Download package

blackhole.c

/*
 * lib/route/sch/blackhole.c  Blackhole Qdisc
 *
 *          This program is free software; you can redistribute it and/or
 *          modify it under the terms of the GNU General Public License
 *          as published by the Free Software Foundation; either version
 *          2 of the License, or (at your option) any later version.
 *
 * Copyright (c) 2003-2005 Thomas Graf <tgraf@suug.ch>
 */

/**
 * @ingroup qdisc
 * @defgroup blackhole Blackhole
 * @{
 */

#include <netlink-local.h>
#include <netlink-tc.h>
#include <netlink/netlink.h>
#include <netlink/route/qdisc.h>
#include <netlink/route/qdisc-modules.h>

static struct rtnl_qdisc_ops blackhole_ops = {
      .qo_kind          = "blackhole",
};

static void __init blackhole_init(void)
{
      rtnl_qdisc_register(&blackhole_ops);
}

static void __exit blackhole_exit(void)
{
      rtnl_qdisc_unregister(&blackhole_ops);
}

/** @} */

Generated by  Doxygen 1.6.0   Back to index