From: "Andreas Färber" <andreas.faerber@web.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
Blue Swirl <blauwirbel@gmail.com>,
Anthony Liguori <anthony@codemonkey.ws>
Cc: Lee Essen <lee.essen@nowonline.co.uk>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-1.1] slirp: Untangle TCPOLEN_* from TCPOPT_*
Date: Sun, 27 May 2012 19:43:11 +0200 [thread overview]
Message-ID: <4FC267AF.3060706@web.de> (raw)
In-Reply-To: <1335565745-22708-1-git-send-email-afaerber@suse.de>
Am 28.04.2012 00:29, schrieb Andreas Färber:
> From: Andreas Färber <andreas.faerber@web.de>
>
> Commit b72210568ef0c0fb141a01cffb71a09c4efa0364 (slirp: clean up
> conflicts with system headers) enclosed TCPOLEN_MAXSEG with an #ifdef
> TCPOPT_EOL. This broke the build on illumos, which has TCPOPT_*
> but not TCPOLEN_*.
>
> Move them to their own #ifdef TCPOLEN_MAXSEG section to remedy this.
>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Ping! It seems this patch has not been applied yet despite agreement
between Blue and Jan that we should apply this least-invasive version
for 1.1. Please apply / include in a PULL for rc4.
Andreas
> ---
> slirp/tcp.h | 13 ++++++++-----
> 1 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/slirp/tcp.h b/slirp/tcp.h
> index 8299603..2e2b403 100644
> --- a/slirp/tcp.h
> +++ b/slirp/tcp.h
> @@ -79,20 +79,23 @@ struct tcphdr {
> #define TCPOPT_EOL 0
> #define TCPOPT_NOP 1
> #define TCPOPT_MAXSEG 2
> -#define TCPOLEN_MAXSEG 4
> #define TCPOPT_WINDOW 3
> -#define TCPOLEN_WINDOW 3
> #define TCPOPT_SACK_PERMITTED 4 /* Experimental */
> -#define TCPOLEN_SACK_PERMITTED 2
> #define TCPOPT_SACK 5 /* Experimental */
> #define TCPOPT_TIMESTAMP 8
> -#define TCPOLEN_TIMESTAMP 10
> -#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */
>
> #define TCPOPT_TSTAMP_HDR \
> (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP)
> #endif
>
> +#ifndef TCPOLEN_MAXSEG
> +#define TCPOLEN_MAXSEG 4
> +#define TCPOLEN_WINDOW 3
> +#define TCPOLEN_SACK_PERMITTED 2
> +#define TCPOLEN_TIMESTAMP 10
> +#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */
> +#endif
> +
> /*
> * Default maximum segment size for TCP.
> * With an IP MSS of 576, this is 536,
next parent reply other threads:[~2012-05-27 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1335565745-22708-1-git-send-email-afaerber@suse.de>
2012-05-27 17:43 ` Andreas Färber [this message]
2012-05-28 11:46 ` [Qemu-devel] [PATCH for-1.1] slirp: Untangle TCPOLEN_* from TCPOPT_* Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FC267AF.3060706@web.de \
--to=andreas.faerber@web.de \
--cc=anthony@codemonkey.ws \
--cc=blauwirbel@gmail.com \
--cc=jan.kiszka@siemens.com \
--cc=lee.essen@nowonline.co.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).