Commit 8727ca83 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: Fix TCP header offset used in tcp_manip_pkt().

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 643e0d68
...@@ -105,7 +105,7 @@ tcp_manip_pkt(struct sk_buff **pskb, ...@@ -105,7 +105,7 @@ tcp_manip_pkt(struct sk_buff **pskb,
return 0; return 0;
iph = (struct iphdr *)((*pskb)->data + iphdroff); iph = (struct iphdr *)((*pskb)->data + iphdroff);
hdr = (struct tcphdr *)((*pskb)->data + iph->ihl*4); hdr = (struct tcphdr *)((*pskb)->data + hdroff);
if (maniptype == IP_NAT_MANIP_SRC) { if (maniptype == IP_NAT_MANIP_SRC) {
/* Get rid of src ip and src pt */ /* Get rid of src ip and src pt */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment