Commit 773f2cdd3c288b6881986c32d8dbe24d4d8af4e1

Authored by bellard
1 parent fedc54ad

set TCP_MSS to 1460 (Ed Swierk)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1881 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
slirp/tcp.h
... ... @@ -100,8 +100,10 @@ struct tcphdr {
100 100 * With an IP MSS of 576, this is 536,
101 101 * but 512 is probably more convenient.
102 102 * This should be defined as MIN(512, IP_MSS - sizeof (struct tcpiphdr)).
  103 + *
  104 + * We make this 1460 because we only care about Ethernet in the qemu context.
103 105 */
104   -#define TCP_MSS 512
  106 +#define TCP_MSS 1460
105 107  
106 108 #define TCP_MAXWIN 65535 /* largest value for (unscaled) window */
107 109  
... ...