Guillaume Subiron 98c63057d2 slirp: Factorizing tcpiphdr structure with an union
This patch factorizes the tcpiphdr structure to put the IPv4 fields in
an union, for addition of version 6 in further patch.
Using some macros, retrocompatibility of the existing code is assured.

This patch also fixes the SLIRP_MSIZE and margin computation in various
functions, and makes them compatible with the new tcpiphdr structure,
whose size will be bigger than sizeof(struct tcphdr) + sizeof(struct ip)

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>
2016-03-15 10:35:11 +01:00
..
2016-02-04 17:41:30 +00:00
2016-02-04 17:41:30 +00:00
2016-02-04 17:41:30 +00:00
2016-03-15 10:35:04 +01:00
2016-03-15 10:35:04 +01:00
2016-03-15 10:35:08 +01:00
2016-03-15 10:35:02 +01:00
2016-03-15 10:35:02 +01:00
2016-03-15 10:35:02 +01:00
2016-02-04 17:41:30 +00:00
2016-03-15 10:35:08 +01:00
2016-02-04 17:41:30 +00:00
2016-02-04 17:41:30 +00:00
2016-03-15 10:35:08 +01:00
2016-02-04 17:41:30 +00:00
2016-02-04 17:41:30 +00:00
2016-03-15 10:35:08 +01:00
2016-03-15 10:35:02 +01:00
2016-03-15 10:35:08 +01:00