Annotation of 43BSD/include/resolv.h, revision 1.1.1.1

1.1       root        1: 
                      2: /*
                      3:  * Copyright (c) 1983 Regents of the University of California.
                      4:  * All rights reserved.  The Berkeley software License Agreement
                      5:  * specifies the terms and conditions for redistribution.
                      6:  *
                      7:  *     @(#)resolv.h    5.4 (Berkeley) 2/22/86
                      8:  */
                      9: 
                     10: /*
                     11:  * Global defines and variables for resolver stub.
                     12:  */
                     13: 
                     14: 
                     15: #define        MAXNS           3               /* max # name servers we'll track */
                     16: 
                     17: 
                     18: struct state {
                     19:        int     retrans;                /* retransmition time interval */
                     20:        int     retry;                  /* number of times to retransmit */
                     21:        long    options;                /* option flags - see below. */
                     22:        int     nscount;                /* number of name servers */
                     23:        struct  sockaddr_in nsaddr_list[MAXNS]; /* address of name server */
                     24: #define        nsaddr  nsaddr_list[0]          /* for backward compatibility */
                     25:        u_short id;                     /* current packet id */
                     26:        char    defdname[MAXDNAME];     /* default domain */
                     27: };
                     28: 
                     29: /*
                     30:  * Resolver options
                     31:  */
                     32: #define RES_INIT       0x0001          /* address initialized */
                     33: #define RES_DEBUG      0x0002          /* print debug messages */
                     34: #define RES_AAONLY     0x0004          /* authoritative answers only */
                     35: #define RES_USEVC      0x0008          /* use virtual circuit */
                     36: #define RES_PRIMARY    0x0010          /* query primary server only */
                     37: #define RES_IGNTC      0x0020          /* ignore trucation errors */
                     38: #define RES_RECURSE    0x0040          /* recursion desired */
                     39: #define RES_DEFNAMES   0x0080          /* use default domain name */
                     40: #define RES_STAYOPEN   0x0100          /* Keep TCP socket open */
                     41: 
                     42: extern struct state _res;
                     43: extern char *p_cdname(), *p_rr(), *p_type(), *p_class();

unix.superglobalmegacorp.com

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