Annotation of cci/sys/netinet/tcp.h, revision 1.1.1.1

1.1       root        1: /*     tcp.h   6.1     83/07/29        */
                      2: 
                      3: typedef        u_long  tcp_seq;
                      4: /*
                      5:  * TCP header.
                      6:  * Per RFC 793, September, 1981.
                      7:  */
                      8: struct tcphdr {
                      9:        u_short th_sport;               /* source port */
                     10:        u_short th_dport;               /* destination port */
                     11:        tcp_seq th_seq;                 /* sequence number */
                     12:        tcp_seq th_ack;                 /* acknowledgement number */
                     13: #ifdef VAX
                     14:        u_char  th_x2:4,                /* (unused) */
                     15:                th_off:4;               /* data offset */
                     16: #else                                  /* Default to TAHOE style */
                     17:        u_char  th_off:4,               /* data offset */
                     18:                th_x2:4;                /* (unused) */
                     19: #endif
                     20:        u_char  th_flags;
                     21: #define        TH_FIN  0x01
                     22: #define        TH_SYN  0x02
                     23: #define        TH_RST  0x04
                     24: #define        TH_PUSH 0x08
                     25: #define        TH_ACK  0x10
                     26: #define        TH_URG  0x20
                     27:        u_short th_win;                 /* window */
                     28:        u_short th_sum;                 /* checksum */
                     29:        u_short th_urp;                 /* urgent pointer */
                     30: };
                     31: 
                     32: #define        TCPOPT_EOL      0
                     33: #define        TCPOPT_NOP      1
                     34: #define        TCPOPT_MAXSEG   2

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.