1 From 118aff8ad7923cee696104afd4a62531d4d737fd Mon Sep 17 00:00:00 2001
2 From: S.Çağlar Onur <caglar@cs.princeton.edu>
3 Date: Tue, 7 Dec 2010 11:08:01 -0500
4 Subject: [PATCH] linux-2.6-527-iptables-classify-add-mark.patch
7 include/linux/netfilter/xt_CLASSIFY.h | 1 +
8 net/netfilter/xt_CLASSIFY.c | 2 ++
9 2 files changed, 3 insertions(+), 0 deletions(-)
11 diff --git a/include/linux/netfilter/xt_CLASSIFY.h b/include/linux/netfilter/xt_CLASSIFY.h
12 index a813bf1..c5cec1d 100644
13 --- a/include/linux/netfilter/xt_CLASSIFY.h
14 +++ b/include/linux/netfilter/xt_CLASSIFY.h
17 struct xt_classify_target_info {
22 #endif /*_XT_CLASSIFY_H */
23 diff --git a/net/netfilter/xt_CLASSIFY.c b/net/netfilter/xt_CLASSIFY.c
24 index 011bc80..5732034 100644
25 --- a/net/netfilter/xt_CLASSIFY.c
26 +++ b/net/netfilter/xt_CLASSIFY.c
27 @@ -32,6 +32,8 @@ classify_tg(struct sk_buff *skb, const struct xt_target_param *par)
28 const struct xt_classify_target_info *clinfo = par->targinfo;
30 skb->priority = clinfo->priority;
31 + if (clinfo->add_mark)
32 + skb->priority += skb->mark;