slirp: Generalizing and neutralizing various TCP functions before adding IPv6 stuff
commit9dfbf250d2a57adea15e42eed44ae35cb32d7597
authorGuillaume Subiron <maethor@subiron.org>
Tue, 15 Mar 2016 09:31:21 +0000 (15 10:31 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 15 Mar 2016 09:35:14 +0000 (15 10:35 +0100)
treea5bbf8bfe64d593175cf0400fd7b2ce0fdcf4465
parent98c63057d2144fb81681580cd84c13c93794c96e
slirp: Generalizing and neutralizing various TCP functions before adding IPv6 stuff

Basically, this patch adds some switch in various TCP functions to
prepare them for the IPv6 case.

To have something to "switch" in tcp_input() and tcp_respond(), a new
argument is used to give them the sa_family of the addresses they are
working on.

This patch does not include the entailed reindentation, to make proofread
easier. Reindentation is adressed in the following no-op patch.

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>
slirp/ip_input.c
slirp/slirp.c
slirp/slirp.h
slirp/tcp_input.c
slirp/tcp_output.c
slirp/tcp_subr.c
slirp/tcp_timer.c