cg_free is (u_char)
[unix-history] / usr / src / sys / netinet / tcp.h
index ae22aea..4432b03 100644 (file)
@@ -1,5 +1,6 @@
-/* tcp.h 1.18 81/11/24 */
+/* tcp.h 1.21 82/01/18 */
 
 
+typedef        u_long  tcp_seq;
 /*
  * TCP header.
  * Per RFC 793, September, 1981.
 /*
  * TCP header.
  * Per RFC 793, September, 1981.
@@ -7,8 +8,8 @@
 struct tcphdr {
        u_short th_sport;               /* source port */
        u_short th_dport;               /* destination port */
 struct tcphdr {
        u_short th_sport;               /* source port */
        u_short th_dport;               /* destination port */
-       seq_t   th_seq;                 /* sequence number */
-       seq_t   th_ackno;               /* acknowledgement number */
+       tcp_seq th_seq;                 /* sequence number */
+       tcp_seq th_ack;                 /* acknowledgement number */
        u_char
                th_x2:4,                /* (unused) */
                th_off:4;               /* data offset */
        u_char
                th_x2:4,                /* (unused) */
                th_off:4;               /* data offset */
@@ -23,3 +24,20 @@ struct tcphdr {
        u_short th_sum;                 /* checksum */
        u_short th_urp;                 /* urgent pointer */
 };
        u_short th_sum;                 /* checksum */
        u_short th_urp;                 /* urgent pointer */
 };
+
+#define        TCPOPT_EOL      0
+#define        TCPOPT_NOP      1
+#define        TCPOPT_MAXSEG   2
+
+#ifdef TCPTRUEOOB
+/*
+ * True out-of-band as value added option.
+ * Advertise willingness with TCPOPT_WILOOB in
+ * initial segment.  If peer is willing, will receive
+ * such also.  Then can send TCPOPT_OOBDATA whenever oob data
+ * exists; peer should ack with TCPOPT_OOBACK in segment.
+ */
+#define        TCPOPT_WILLOOB  64              /* bytes: 64, 2 */
+#define        TCPOPT_OOBDATA  65              /* bytes: 65, 8, seq#, data, markseq */
+#define        TCPOPT_OOBACK   66              /* bytes: 66, 3, ack# */
+#endif