]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_psd: support UDPLITE
authorJan Engelhardt <jengelh@medozas.de>
Thu, 11 Aug 2011 13:47:20 +0000 (15:47 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 11 Aug 2011 13:47:20 +0000 (15:47 +0200)
doc/changelog.txt
extensions/xt_psd.c

index 7c9c6497a22ebcc91859fcb6d72bbb9da95b5011..9ee6d9fe7ebc966cce6b0580722ea4824c1e76fb 100644 (file)
@@ -4,6 +4,7 @@ HEAD
 - xt_TARPIT: fix kernel warning about RTAX_HOPLIMIT being used
 - xt_TEE: abort build when the feature is already provided by mainline
 - xt_psd: restore functionality with UDP
+- xt_psd: support UDPLITE
 
 
 v1.37 (2011-06-25)
index b038f480e5ff24be20f573993c801d4b149ce9bb..63ba586b4b63c2088fd43b7c50beb98a98a4c3a4 100644 (file)
@@ -147,7 +147,7 @@ xt_psd_match(const struct sk_buff *pskb, struct xt_action_param *match)
                src_port = tcph->source;
                dest_port = tcph->dest;
                tcp_flags = *((u_int8_t*)tcph + 13);
-       } else if (proto == IPPROTO_UDP) {
+       } else if (proto == IPPROTO_UDP || proto == IPPROTO_UDPLITE) {
                udph = skb_header_pointer(pskb, match->thoff,
                       sizeof(_udph), &_udph);
                if (udph == NULL)