mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 05:34:58 +02:00
xt_psd: support UDPLITE
This commit is contained in:
@@ -4,6 +4,7 @@ HEAD
|
|||||||
- xt_TARPIT: fix kernel warning about RTAX_HOPLIMIT being used
|
- xt_TARPIT: fix kernel warning about RTAX_HOPLIMIT being used
|
||||||
- xt_TEE: abort build when the feature is already provided by mainline
|
- xt_TEE: abort build when the feature is already provided by mainline
|
||||||
- xt_psd: restore functionality with UDP
|
- xt_psd: restore functionality with UDP
|
||||||
|
- xt_psd: support UDPLITE
|
||||||
|
|
||||||
|
|
||||||
v1.37 (2011-06-25)
|
v1.37 (2011-06-25)
|
||||||
|
@@ -147,7 +147,7 @@ xt_psd_match(const struct sk_buff *pskb, struct xt_action_param *match)
|
|||||||
src_port = tcph->source;
|
src_port = tcph->source;
|
||||||
dest_port = tcph->dest;
|
dest_port = tcph->dest;
|
||||||
tcp_flags = *((u_int8_t*)tcph + 13);
|
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,
|
udph = skb_header_pointer(pskb, match->thoff,
|
||||||
sizeof(_udph), &_udph);
|
sizeof(_udph), &_udph);
|
||||||
if (udph == NULL)
|
if (udph == NULL)
|
||||||
|
Reference in New Issue
Block a user