Annotation of 42BSD/sys/netpup/pup.h, revision 1.1

1.1     ! root        1: /*     pup.h   6.1     83/07/29        */
        !             2: 
        !             3: struct pupport {
        !             4:        u_char  pup_net;
        !             5:        u_char  pup_host;
        !             6:        u_char  pup_socket[4];
        !             7: };
        !             8: 
        !             9: /*
        !            10:  * PUP header.
        !            11:  */
        !            12: struct pup_header {
        !            13:        u_short pup_length;
        !            14:        u_char  pup_tcontrol;           /* transport control */
        !            15:        u_char  pup_type;               /* protocol type */
        !            16:        u_long  pup_id;                 /* used by protocols */
        !            17:        u_char  pup_dnet;               /* destination */
        !            18:        u_char  pup_dhost;
        !            19:        u_char  pup_dsock[4];
        !            20:        u_char  pup_snet;               /* source */
        !            21:        u_char  pup_shost;
        !            22:        u_char  pup_ssock[4];
        !            23: };
        !            24: 
        !            25: #define        PUP_TRACE       01              /* trace pup in network */
        !            26: 
        !            27: #define        MINPUPSIZ       (sizeof (struct pup_header) + sizeof (short))
        !            28: #define        MAXPUPDATA      532
        !            29: #define        MAXPUPSIZ       (MINPUPSIZ + MAXPUPDATA)
        !            30: 
        !            31: #define        PUP_NOCKSUM     0xffff          /* no checksum supplied */
        !            32: 
        !            33: /*
        !            34:  * A sockaddr, as seen through the eyes of PUP.
        !            35:  */
        !            36: struct sockaddr_pup {
        !            37:        short   spup_family;
        !            38:        short   spup_zero1;
        !            39:        u_char  spup_net;
        !            40:        u_char  spup_host;
        !            41:        u_char  spup_sock[4];
        !            42:        char    spup_zero2[4];
        !            43: };

unix.superglobalmegacorp.com

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