diff options
| author | Guillaume Subiron | 2016-03-15 10:31:20 +0100 |
|---|---|---|
| committer | Samuel Thibault | 2016-03-15 10:35:11 +0100 |
| commit | 98c63057d2144fb81681580cd84c13c93794c96e (patch) | |
| tree | 6f8ae513422d915b55210f4bf350c3a051daf1c4 /tests/qapi-schema/enum-missing-data.json | |
| parent | slirp: Adding IPv6 UDP support (diff) | |
| download | qemu-98c63057d2144fb81681580cd84c13c93794c96e.tar.gz qemu-98c63057d2144fb81681580cd84c13c93794c96e.tar.xz qemu-98c63057d2144fb81681580cd84c13c93794c96e.zip | |
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>
Diffstat (limited to 'tests/qapi-schema/enum-missing-data.json')
0 files changed, 0 insertions, 0 deletions
