aboutsummaryrefslogtreecommitdiff
path: root/tcp.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-01 11:17:27 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-01 11:17:27 +0000
commitd03c2c5d06a5a9d8d0f20079a86cf6bce4bc9d73 (patch)
treeaf5181c52a20bd982c984afd16d87d234c43789d /tcp.h
parent695b95467bb6675ff1311361708969bd3b642a54 (diff)
downloadslirp-d03c2c5d06a5a9d8d0f20079a86cf6bce4bc9d73.zip
slirp-d03c2c5d06a5a9d8d0f20079a86cf6bce4bc9d73.tar.gz
slirp-d03c2c5d06a5a9d8d0f20079a86cf6bce4bc9d73.tar.bz2
set TCP_MSS to 1460 (Ed Swierk)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1881 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcp.h b/tcp.h
index 98e44a0..799568f 100644
--- a/tcp.h
+++ b/tcp.h
@@ -101,8 +101,10 @@ struct tcphdr {
* With an IP MSS of 576, this is 536,
* but 512 is probably more convenient.
* This should be defined as MIN(512, IP_MSS - sizeof (struct tcpiphdr)).
+ *
+ * We make this 1460 because we only care about Ethernet in the qemu context.
*/
-#define TCP_MSS 512
+#define TCP_MSS 1460
#define TCP_MAXWIN 65535 /* largest value for (unscaled) window */