BSD 4_3_Tahoe release
[unix-history] / usr / src / sys / netinet / tcp.h
index 81e84c4..8b02eed 100644 (file)
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)tcp.h       7.4.1.2 (Berkeley) %G%
+ *     @(#)tcp.h       7.5 (Berkeley) 6/29/88
  */
  */
-#ifndef BYTE_ORDER
-/*
- * Definitions for byte order,
- * according to byte significance from low address to high.
- */
-#define        LITTLE_ENDIAN   1234    /* least-significant byte first (vax) */
-#define        BIG_ENDIAN      4321    /* most-significant byte first (IBM, net) */
-#define        PDP_ENDIAN      3412    /* LSB first in word, MSW first in long (pdp) */
-
-#ifdef vax
-#define        BYTE_ORDER      LITTLE_ENDIAN
-#else
-#define        BYTE_ORDER      BIG_ENDIAN      /* mc68000, tahoe, most others */
-#endif
-#endif BYTE_ORDER
 
 typedef        u_long  tcp_seq;
 /*
 
 typedef        u_long  tcp_seq;
 /*
@@ -42,11 +27,11 @@ struct tcphdr {
        u_short th_dport;               /* destination port */
        tcp_seq th_seq;                 /* sequence number */
        tcp_seq th_ack;                 /* acknowledgement number */
        u_short th_dport;               /* destination port */
        tcp_seq th_seq;                 /* sequence number */
        tcp_seq th_ack;                 /* acknowledgement number */
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN 
        u_char  th_x2:4,                /* (unused) */
                th_off:4;               /* data offset */
 #endif
        u_char  th_x2:4,                /* (unused) */
                th_off:4;               /* data offset */
 #endif
-#if BYTE_ORDER == BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN 
        u_char  th_off:4,               /* data offset */
                th_x2:4;                /* (unused) */
 #endif
        u_char  th_off:4,               /* data offset */
                th_x2:4;                /* (unused) */
 #endif
@@ -74,9 +59,6 @@ struct tcphdr {
 #ifdef lint
 #define        TCP_MSS 536
 #else
 #ifdef lint
 #define        TCP_MSS 536
 #else
-#ifndef IP_MSS
-#define        IP_MSS  576
-#endif
 #define        TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
 #endif
 
 #define        TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))
 #endif