|
@@ -11,7 +11,7 @@
|
|
* Note: Quantum tunneling is not supported.
|
|
* Note: Quantum tunneling is not supported.
|
|
*/
|
|
*/
|
|
|
|
|
|
-#include <linux/module.h>
|
|
|
|
|
|
+#include <linux/init.h>
|
|
#include <linux/types.h>
|
|
#include <linux/types.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/skbuff.h>
|
|
#include <linux/skbuff.h>
|
|
@@ -37,17 +37,8 @@ static struct Qdisc_ops blackhole_qdisc_ops __read_mostly = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
};
|
|
};
|
|
|
|
|
|
-static int __init blackhole_module_init(void)
|
|
|
|
|
|
+static int __init blackhole_init(void)
|
|
{
|
|
{
|
|
return register_qdisc(&blackhole_qdisc_ops);
|
|
return register_qdisc(&blackhole_qdisc_ops);
|
|
}
|
|
}
|
|
-
|
|
|
|
-static void __exit blackhole_module_exit(void)
|
|
|
|
-{
|
|
|
|
- unregister_qdisc(&blackhole_qdisc_ops);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-module_init(blackhole_module_init)
|
|
|
|
-module_exit(blackhole_module_exit)
|
|
|
|
-
|
|
|
|
-MODULE_LICENSE("GPL");
|
|
|
|
|
|
+device_initcall(blackhole_init)
|