This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / lib / route / sch / blackhole.c
diff --git a/lib/route/sch/blackhole.c b/lib/route/sch/blackhole.c
new file mode 100644 (file)
index 0000000..207f0bd
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * lib/route/sch/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-2006 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);
+}
+
+/** @} */