xt_psd: support UDPLITE

This commit is contained in:
Jan Engelhardt
2011-08-11 15:47:20 +02:00
parent 7e92ce7ce6
commit a141cc311c
2 changed files with 2 additions and 1 deletions

View 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)

View 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)