|
@@ -166,6 +166,7 @@ struct tcf_ematch {
|
|
unsigned int datalen;
|
|
unsigned int datalen;
|
|
u16 matchid;
|
|
u16 matchid;
|
|
u16 flags;
|
|
u16 flags;
|
|
|
|
+ struct net *net;
|
|
};
|
|
};
|
|
|
|
|
|
static inline int tcf_em_is_container(struct tcf_ematch *em)
|
|
static inline int tcf_em_is_container(struct tcf_ematch *em)
|
|
@@ -229,12 +230,11 @@ struct tcf_ematch_tree {
|
|
struct tcf_ematch_ops {
|
|
struct tcf_ematch_ops {
|
|
int kind;
|
|
int kind;
|
|
int datalen;
|
|
int datalen;
|
|
- int (*change)(struct tcf_proto *, void *,
|
|
|
|
|
|
+ int (*change)(struct net *net, void *,
|
|
int, struct tcf_ematch *);
|
|
int, struct tcf_ematch *);
|
|
int (*match)(struct sk_buff *, struct tcf_ematch *,
|
|
int (*match)(struct sk_buff *, struct tcf_ematch *,
|
|
struct tcf_pkt_info *);
|
|
struct tcf_pkt_info *);
|
|
- void (*destroy)(struct tcf_proto *,
|
|
|
|
- struct tcf_ematch *);
|
|
|
|
|
|
+ void (*destroy)(struct tcf_ematch *);
|
|
int (*dump)(struct sk_buff *, struct tcf_ematch *);
|
|
int (*dump)(struct sk_buff *, struct tcf_ematch *);
|
|
struct module *owner;
|
|
struct module *owner;
|
|
struct list_head link;
|
|
struct list_head link;
|
|
@@ -244,7 +244,7 @@ int tcf_em_register(struct tcf_ematch_ops *);
|
|
void tcf_em_unregister(struct tcf_ematch_ops *);
|
|
void tcf_em_unregister(struct tcf_ematch_ops *);
|
|
int tcf_em_tree_validate(struct tcf_proto *, struct nlattr *,
|
|
int tcf_em_tree_validate(struct tcf_proto *, struct nlattr *,
|
|
struct tcf_ematch_tree *);
|
|
struct tcf_ematch_tree *);
|
|
-void tcf_em_tree_destroy(struct tcf_proto *, struct tcf_ematch_tree *);
|
|
|
|
|
|
+void tcf_em_tree_destroy(struct tcf_ematch_tree *);
|
|
int tcf_em_tree_dump(struct sk_buff *, struct tcf_ematch_tree *, int);
|
|
int tcf_em_tree_dump(struct sk_buff *, struct tcf_ematch_tree *, int);
|
|
int __tcf_em_tree_match(struct sk_buff *, struct tcf_ematch_tree *,
|
|
int __tcf_em_tree_match(struct sk_buff *, struct tcf_ematch_tree *,
|
|
struct tcf_pkt_info *);
|
|
struct tcf_pkt_info *);
|
|
@@ -301,7 +301,7 @@ struct tcf_ematch_tree {
|
|
};
|
|
};
|
|
|
|
|
|
#define tcf_em_tree_validate(tp, tb, t) ((void)(t), 0)
|
|
#define tcf_em_tree_validate(tp, tb, t) ((void)(t), 0)
|
|
-#define tcf_em_tree_destroy(tp, t) do { (void)(t); } while(0)
|
|
|
|
|
|
+#define tcf_em_tree_destroy(t) do { (void)(t); } while(0)
|
|
#define tcf_em_tree_dump(skb, t, tlv) (0)
|
|
#define tcf_em_tree_dump(skb, t, tlv) (0)
|
|
#define tcf_em_tree_change(tp, dst, src) do { } while(0)
|
|
#define tcf_em_tree_change(tp, dst, src) do { } while(0)
|
|
#define tcf_em_tree_match(skb, t, info) ((void)(info), 1)
|
|
#define tcf_em_tree_match(skb, t, info) ((void)(info), 1)
|