qemu-patch-raspberry4/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
..
arp_table.c
bootp.c slirp: check len against dhcp options array end 2017-08-03 00:26:44 +02:00
bootp.h
cksum.c
COPYRIGHT
debug.h
dhcpv6.c
dhcpv6.h
dnssearch.c
if.c slirp: Add a special case for the NULL socket 2017-09-24 20:04:09 +02:00
if.h
ip.h
ip6.h slirp: use DIV_ROUND_UP 2017-07-15 14:28:25 +02:00
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
Makefile.objs
mbuf.c
mbuf.h
misc.c slirp: fork_exec(): Don't close() a negative number in fork_exec() 2017-07-15 14:28:25 +02:00
misc.h
ncsi-pkt.h
ncsi.c
ndp_table.c
sbuf.c slirp: Handle error returns from sosendoob() 2017-07-15 14:28:25 +02:00
sbuf.h slirp: VMStatify sbuf 2017-04-29 18:44:16 +02:00
slirp.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
slirp.h slirp: Fix intermittent send queue hangs on a socket 2017-09-24 20:04:09 +02:00
slirp_config.h
socket.c slirp: fix clearing ifq_so from pending packets 2017-08-30 23:14:34 +01:00
socket.h slirp: VMStatify socket level 2017-04-29 18:44:16 +02:00
tcp.h
tcp_input.c slirp: Fix wrong mss bug. 2017-05-27 23:34:47 +02:00
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