X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=linux-2.6-527-iptables-classify-add-mark.patch;fp=linux-2.6-527-iptables-classify-add-mark.patch;h=526088299b3ef18cd6e2c9e90b2488856db59eb2;hb=9f218bf016dd7ee6e9b39651dff61b0a68ddaa53;hp=0000000000000000000000000000000000000000;hpb=3070568fd7cb7123650ca2cdddf932520f6d71df;p=linux-2.6.git diff --git a/linux-2.6-527-iptables-classify-add-mark.patch b/linux-2.6-527-iptables-classify-add-mark.patch new file mode 100644 index 000000000..526088299 --- /dev/null +++ b/linux-2.6-527-iptables-classify-add-mark.patch @@ -0,0 +1,31 @@ +commit 7645485eee60c03a4cbc0139d4848c6b8bf1ad39 +Author: root +Date: Thu Apr 29 18:34:50 2010 -0400 + + linux-2.6-527-iptables-classify-add-mark.patch + +diff --git a/include/linux/netfilter/xt_CLASSIFY.h b/include/linux/netfilter/xt_CLASSIFY.h +index a813bf1..c5cec1d 100644 +--- a/include/linux/netfilter/xt_CLASSIFY.h ++++ b/include/linux/netfilter/xt_CLASSIFY.h +@@ -5,6 +5,7 @@ + + struct xt_classify_target_info { + __u32 priority; ++ __u8 add_mark; + }; + + #endif /*_XT_CLASSIFY_H */ +diff --git a/net/netfilter/xt_CLASSIFY.c b/net/netfilter/xt_CLASSIFY.c +index 011bc80..5732034 100644 +--- a/net/netfilter/xt_CLASSIFY.c ++++ b/net/netfilter/xt_CLASSIFY.c +@@ -32,6 +32,8 @@ classify_tg(struct sk_buff *skb, const struct xt_target_param *par) + const struct xt_classify_target_info *clinfo = par->targinfo; + + skb->priority = clinfo->priority; ++ if (clinfo->add_mark) ++ skb->priority += skb->mark; + return XT_CONTINUE; + } +