mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
xt_length2: IPv6 jumbogram support
This commit is contained in:
@@ -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)
|
||||||
|
@@ -207,7 +207,11 @@ 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) {
|
||||||
len = sizeof(struct ipv6hdr) + ntohs(iph->payload_len);
|
if (iph->payload_len == 0)
|
||||||
|
/* Jumbogram */
|
||||||
|
len = skb->len;
|
||||||
|
else
|
||||||
|
len = sizeof(struct ipv6hdr) + ntohs(iph->payload_len);
|
||||||
} else {
|
} else {
|
||||||
l4proto = llayer4_proto(skb, &thoff, &par->hotdrop);
|
l4proto = llayer4_proto(skb, &thoff, &par->hotdrop);
|
||||||
if (l4proto == NEXTHDR_MAX)
|
if (l4proto == NEXTHDR_MAX)
|
||||||
|
Reference in New Issue
Block a user