mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 05:34:58 +02:00
SYSRQ: do proper L4 header access in IPv6 code
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
- fuzzy: need to account for kernel-level modified variables in .userspacesize
|
- fuzzy: need to account for kernel-level modified variables in .userspacesize
|
||||||
- geoip: remove XT_ALIGN from .userspacesize when used with offsetof
|
- geoip: remove XT_ALIGN from .userspacesize when used with offsetof
|
||||||
- SYSRQ: ignore non-UDP packets
|
- SYSRQ: ignore non-UDP packets
|
||||||
|
- SYSRQ: do proper L4 header access in IPv6 code
|
||||||
|
(must not use tcp/udp_hdr in input path)
|
||||||
- add "STEAL" target
|
- add "STEAL" target
|
||||||
- dhcpmac: rename from dhcpaddr
|
- dhcpmac: rename from dhcpaddr
|
||||||
|
|
||||||
|
@@ -203,7 +203,7 @@ sysrq_tg4(struct sk_buff **pskb, const struct xt_target_param *par)
|
|||||||
if (iph->protocol != IPPROTO_UDP)
|
if (iph->protocol != IPPROTO_UDP)
|
||||||
return NF_ACCEPT; /* sink it */
|
return NF_ACCEPT; /* sink it */
|
||||||
|
|
||||||
udph = (void *)iph + ip_hdrlen(skb);
|
udph = (const void *)iph + ip_hdrlen(skb);
|
||||||
len = ntohs(udph->len) - sizeof(struct udphdr);
|
len = ntohs(udph->len) - sizeof(struct udphdr);
|
||||||
|
|
||||||
if (sysrq_debug)
|
if (sysrq_debug)
|
||||||
@@ -232,7 +232,7 @@ sysrq_tg6(struct sk_buff **pskb, const struct xt_target_param *par)
|
|||||||
frag_off > 0)
|
frag_off > 0)
|
||||||
return NF_ACCEPT; /* sink it */
|
return NF_ACCEPT; /* sink it */
|
||||||
|
|
||||||
udph = udp_hdr(skb);
|
udph = (const void *)iph + th_off;
|
||||||
len = ntohs(udph->len) - sizeof(struct udphdr);
|
len = ntohs(udph->len) - sizeof(struct udphdr);
|
||||||
|
|
||||||
if (sysrq_debug)
|
if (sysrq_debug)
|
||||||
|
Reference in New Issue
Block a user