]> Git Repo - qemu.git/blobdiff - slirp/tcp.h
Tosa: emulate LEDs (Dmitry Baryshkov).
[qemu.git] / slirp / tcp.h
index 3e0b4dd8f96d9f5c4b019d0bce893ed8cd740280..11150766d95a1674bee6cf2b3d8126b953ad8bce 100644 (file)
@@ -42,8 +42,6 @@ typedef       u_int32_t       tcp_seq;
 #define      PR_SLOWHZ       2               /* 2 slow timeouts per second (approx) */
 #define      PR_FASTHZ       5               /* 5 fast timeouts per second (not important) */
 
-extern int tcp_rcvspace;
-extern int tcp_sndspace;
 extern struct socket *tcp_last_so;
 
 #define TCP_SNDSPACE 8192
@@ -100,8 +98,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 */
 
@@ -109,8 +109,14 @@ struct tcphdr {
 
 /*
  * User-settable options (used with setsockopt).
+ *
+ * We don't use the system headers on unix because we have conflicting
+ * local structures. We can't avoid the system definitions on Windows,
+ * so we undefine them.
  */
-/* #define     TCP_NODELAY     0x01 */ /* don't delay send to coalesce packets */
+#undef TCP_NODELAY
+#define        TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
+#undef TCP_MAXSEG
 /* #define     TCP_MAXSEG      0x02 */ /* set maximum segment size */
 
 /*
@@ -164,6 +170,6 @@ struct tcphdr {
 
 extern tcp_seq tcp_iss;                /* tcp initial send seq # */
 
-extern char *tcpstates[];
+extern const char * const tcpstates[];
 
 #endif
This page took 0.024786 seconds and 4 git commands to generate.