qemu-patch-raspberry4/slirp
Jan Kiszka df46189412 slirp: Factor out one-time initialization
In order to prepare re-initialization and multi-instance slirp, factor
out init code that is of global scope and (at least for now) only need
to be run once.

This also fixes the potentially uninitialized use of our_addr in
get_dns_addr.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-06-29 08:52:47 -05:00
..
bootp.c slirp: Cleanup and basic reanimation of debug code 2009-06-29 08:52:46 -05:00
bootp.h slirp: Handle DHCP requests for specific IP (Jan Kiszka) 2009-04-21 19:56:20 +00:00
cksum.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
COPYRIGHT Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
debug.h slirp: Cleanup and basic reanimation of debug code 2009-06-29 08:52:46 -05:00
if.c slirp: Drop dead code 2009-06-29 08:52:46 -05:00
if.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
ip.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
ip_icmp.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
ip_icmp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ip_input.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
ip_output.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
libslirp.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
main.h slirp: Rework external configuration interface 2009-06-29 08:52:45 -05:00
mbuf.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
mbuf.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
misc.c slirp: Factor out one-time initialization 2009-06-29 08:52:47 -05:00
misc.h slirp: Factor out one-time initialization 2009-06-29 08:52:47 -05:00
sbuf.c slirp: Drop dead code 2009-06-29 08:52:46 -05:00
sbuf.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
slirp.c slirp: Factor out one-time initialization 2009-06-29 08:52:47 -05:00
slirp.h slirp: Drop unused icmp_var.h 2009-06-29 08:52:47 -05:00
slirp_config.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
socket.c slirp: Cleanup and basic reanimation of debug code 2009-06-29 08:52:46 -05:00
socket.h slirp: Drop dead code 2009-06-29 08:52:46 -05:00
tcp.h slirp: Drop dead code 2009-06-29 08:52:46 -05:00
tcp_input.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
tcp_output.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
tcp_subr.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
tcp_timer.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
tcp_timer.h slirp: Drop dead code 2009-06-29 08:52:46 -05:00
tcp_var.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
tcpip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tftp.c slirp: tftp: Rework filename handling 2009-06-29 08:52:47 -05:00
tftp.h find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
udp.c slirp: Drop statistic code 2009-06-29 08:52:46 -05:00
udp.h slirp: Drop statistic code 2009-06-29 08:52:46 -05:00