Annotation of researchv9/sys/h/inet/tcp.h, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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