10 #include <linux/module.h>
11 #include <linux/types.h>
12 #include <linux/list.h>
14 #include <linux/rtnetlink.h>
30 static unsigned long ingress_get(
struct Qdisc *
sch,
u32 classid)
35 static unsigned long ingress_bind_filter(
struct Qdisc *
sch,
38 return ingress_get(sch, classid);
41 static void ingress_put(
struct Qdisc *
sch,
unsigned long cl)
66 qdisc_bstats_update(sch, skb);
89 static void ingress_destroy(
struct Qdisc *sch)
96 static int ingress_dump(
struct Qdisc *sch,
struct sk_buff *skb)
102 goto nla_put_failure;
103 nla_nest_end(skb, nest);
107 nla_nest_cancel(skb, nest);
112 .leaf = ingress_leaf,
115 .walk = ingress_walk,
116 .tcf_chain = ingress_find_tcf,
117 .bind_tcf = ingress_bind_filter,
118 .unbind_tcf = ingress_put,
122 .cl_ops = &ingress_class_ops,
125 .enqueue = ingress_enqueue,
126 .destroy = ingress_destroy,
127 .dump = ingress_dump,
131 static int __init ingress_module_init(
void)
136 static void __exit ingress_module_exit(
void)