mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-18 18:44:57 +02:00
xt_RAWNAT: skb writable part might not include whole L4 header (IPv4 case)
Consider TCP/IPv4 packet with IP options: sizeof(*iph) + sizeof(struct tcphdr) is not enough to include tcp checksum. It may hurt if this packet is fragmented. Therefore, we should use iph->ihl * 4 instead of sizeof(*iph). Signed-off-by: Dmitry Popov <dp@highloadlab.com>
This commit is contained in:

committed by
Jan Engelhardt

parent
3f04148501
commit
b70905e7cb
@@ -1,6 +1,8 @@
|
||||
|
||||
HEAD
|
||||
====
|
||||
Fixes:
|
||||
- xt_RAWNAT: ensure correct operation in the presence of IPv4 options
|
||||
|
||||
|
||||
v2.2 (2013-03-31)
|
||||
|
Reference in New Issue
Block a user