xemu/slirp
Tao Wu 990132cda9 slirp: don't zero the whole ti_i when m == NULL
98c63057d2 ('slirp: Factorizing
tcpiphdr structure with an union') introduced a memset call to clear
possibly-undefined fields in ti. This however overwrites src/dst/pr which
are used below.

So let us clear only the unused fields.

This should fix some rare cases (some RST cases, keep alive probes)
where packets would be sent to 0.0.0.0.

Signed-off-by: Tao Wu <lepton@google.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2017-11-09 18:59:22 +01:00
..
COPYRIGHT
Makefile.objs
arp_table.c
bootp.c
bootp.h
cksum.c
debug.h
dhcpv6.c
dhcpv6.h
dnssearch.c
if.c
if.h
ip.h
ip6.h
ip6_icmp.c
ip6_icmp.h
ip6_input.c
ip6_output.c
ip_icmp.c
ip_icmp.h
ip_input.c
ip_output.c
libslirp.h
main.h
mbuf.c
mbuf.h
misc.c
misc.h
ncsi-pkt.h
ncsi.c
ndp_table.c
sbuf.c
sbuf.h
slirp.c
slirp.h
slirp_config.h
socket.c
socket.h
tcp.h
tcp_input.c
tcp_output.c
tcp_subr.c slirp: don't zero the whole ti_i when m == NULL 2017-11-09 18:59:22 +01:00
tcp_timer.c
tcp_timer.h
tcp_var.h
tcpip.h
tftp.c
tftp.h
udp.c
udp.h
udp6.c