qemu-irix/slirp
Guillaume Subiron eae303ff23 slirp: Make Socket structure IPv6 compatible
This patch replaces foreign and local address/port couples in Socket
structure by 2 sockaddr_storage which can be casted in sockaddr_in.
Direct access to address and port is still possible thanks to some
\#define, so retrocompatibility of the existing code is assured.

The ss_family field of sockaddr_storage is declared after each socket
creation.

The whole structure is also saved/restored when a Qemu session is
saved/restored.

This prepares for IPv6 support.

Signed-off-by: Guillaume Subiron <maethor@subiron.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-02-04 13:22:06 +08:00
..
COPYRIGHT
Makefile.objs
arp_table.c
bootp.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
bootp.h
cksum.c
debug.h
dnssearch.c
if.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
if.h
ip.h
ip_icmp.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
ip_icmp.h
ip_input.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
ip_output.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
libslirp.h
main.h
mbuf.c slirp: Generalizing and neutralizing ARP code 2016-02-04 13:22:06 +08:00
mbuf.h slirp: Generalizing and neutralizing ARP code 2016-02-04 13:22:06 +08:00
misc.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
misc.h
sbuf.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
sbuf.h
slirp.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
slirp.h ether/slirp: Avoid redefinition of the same constants 2016-01-11 11:01:35 +08:00
slirp_config.h
socket.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
socket.h slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
tcp.h
tcp_input.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
tcp_output.c slirp: Fix type casts and format strings in debug code 2015-11-12 13:48:36 +08:00
tcp_subr.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
tcp_timer.c
tcp_timer.h
tcp_var.h
tcpip.h
tftp.c
tftp.h
udp.c slirp: Make Socket structure IPv6 compatible 2016-02-04 13:22:06 +08:00
udp.h