Annotation of researchv9/sys/h/inet/udp.h, revision 1.1

1.1     ! root        1: /*     udp.h   6.1     83/07/29        */
        !             2: 
        !             3: typedef unsigned short udp_port;
        !             4: #define UDPPORT_ANY    0x8000  /* wild card for port number */
        !             5: 
        !             6: #ifdef KERNEL
        !             7: /*
        !             8:  * Udp protocol header.
        !             9:  * Per RFC 768, September, 1981.
        !            10:  */
        !            11: struct udphdr {
        !            12:        u_short uh_sport;               /* source port */
        !            13:        u_short uh_dport;               /* destination port */
        !            14:        short   uh_ulen;                /* udp length */
        !            15:        u_short uh_sum;                 /* udp checksum */
        !            16: };
        !            17: 
        !            18: struct udp {
        !            19:        int     flags;
        !            20:        u_short dport;
        !            21:        u_long  dst;
        !            22:        u_short sport;
        !            23:        u_long  src;
        !            24:        struct queue *rq;
        !            25:        struct block *head;
        !            26:        struct block *tail;
        !            27: };
        !            28: /* values for udp flags */
        !            29: #define        UDP_INIT        1
        !            30: #define        UDP_LISTEN      2
        !            31: #define UDP_CONNECTED  4
        !            32: 
        !            33: #endif KERNEL
        !            34: 
        !            35: #define UDP_BODY_LIMIT 512     /* maximum size of a UDP message body */

unix.superglobalmegacorp.com

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