From a141cc311cf549da9289f648a306c05b215afb22 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 11 Aug 2011 15:47:20 +0200 Subject: [PATCH] xt_psd: support UDPLITE --- doc/changelog.txt | 1 + extensions/xt_psd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 7c9c649..9ee6d9f 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -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) diff --git a/extensions/xt_psd.c b/extensions/xt_psd.c index b038f48..63ba586 100644 --- a/extensions/xt_psd.c +++ b/extensions/xt_psd.c @@ -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)