Annotation of researchv10dc/lsys/sys/inet/tcp.h, revision 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: #define TCP_DEFMAXSEG 512      /* default max segment size */
        !             8: 
        !             9: #ifdef KERNEL
        !            10: /*
        !            11:  * TCP header.
        !            12:  * Per RFC 793, September, 1981.
        !            13:  */
        !            14: struct tcphdr {
        !            15:        tcp_port        th_sport;       /* source port */
        !            16:        tcp_port        th_dport;       /* destination port */
        !            17:        tcp_seq         th_seq;         /* sequence number */
        !            18:        tcp_seq         th_ack;         /* acknowledgement number */
        !            19: #ifdef vax
        !            20:        u_int   th_x2:4,                /* (unused) */
        !            21:                th_off:4;               /* data offset */
        !            22: #endif vax
        !            23:        u_char  th_flags;
        !            24: #define        TH_FIN  0x01
        !            25: #define        TH_SYN  0x02
        !            26: #define        TH_RST  0x04
        !            27: #define        TH_PUSH 0x08
        !            28: #define        TH_ACK  0x10
        !            29: #define        TH_URG  0x20
        !            30:        u_short th_win;                 /* window */
        !            31:        u_short th_sum;                 /* checksum */
        !            32:        u_short th_urp;                 /* urgent pointer */
        !            33: };
        !            34: 
        !            35: #define        TCPOPT_EOL      0
        !            36: #define        TCPOPT_NOP      1
        !            37: #define        TCPOPT_MAXSEG   2
        !            38: #endif KERNEL

unix.superglobalmegacorp.com

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