Fix total IP header length in forwarded TCP packets
commit2e30230aa95a2d6cfaadac015bd96c3db19c45e4
authorSjors Gielen <sjors@sjorsgielen.nl>
Wed, 24 May 2017 17:51:12 +0000 (24 17:51 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 May 2017 21:35:00 +0000 (27 23:35 +0200)
tree0cedced68b51179583808ccdd6cc5e289886c35f
parent7d8246960e03dabf37726c01d231e89dfde9b229
Fix total IP header length in forwarded TCP packets

When forwarding TCP packets, the internal tcpiphdr struct length was wrongly
used inside the IP header. This commit changes the behaviour to what is used
by tcp_output.c, using the correct full IP header + payload length.

Signed-off-by: Sjors Gielen <sjors@sjorsgielen.nl>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/tcp_subr.c