xt_length2: IPv6 jumbogram support

This commit is contained in:
Jan Engelhardt
2010-07-24 10:57:03 +02:00
parent 6dedbef3d4
commit 4d48511f01
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ HEAD
==== ====
- RAWNAT: IPv6 variants erroneously rejected masks /33-/128 - RAWNAT: IPv6 variants erroneously rejected masks /33-/128
- new target xt_CHECKSUM - new target xt_CHECKSUM
- xt_length2: add support for IPv6 jumbograms
Xtables-addons 1.27 (May 16 2010) Xtables-addons 1.27 (May 16 2010)

View File

@@ -207,6 +207,10 @@ length2_mt6(const struct sk_buff *skb, struct xt_action_param *par)
bool hit = true; bool hit = true;
if (info->flags & XT_LENGTH_LAYER3) { if (info->flags & XT_LENGTH_LAYER3) {
if (iph->payload_len == 0)
/* Jumbogram */
len = skb->len;
else
len = sizeof(struct ipv6hdr) + ntohs(iph->payload_len); len = sizeof(struct ipv6hdr) + ntohs(iph->payload_len);
} else { } else {
l4proto = llayer4_proto(skb, &thoff, &par->hotdrop); l4proto = llayer4_proto(skb, &thoff, &par->hotdrop);