# 2.11BSD#431 - /usr/include/resolv.h

##### Macros

    LOCALDOMAINPARTS  X
    MAXDNSRCH         X
    MAXNS             X
    RES_AAONLY        X
    RES_DEBUG         X
    RES_DEFAULT       X
    RES_DEFNAMES      X
    RES_DNSRCH        X
    RES_IGNTC         X
    RES_INIT          X
    RES_PRIMARY       X
    RES_RECURSE       X
    RES_STAYOPEN      X
    RES_TIMEOUT       X
    RES_USEVC         X
    nsaddr            X

##### struct's

    state             X

       1:
       2: /*
       3:  * Copyright (c) 1983, 1987 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.5 (Berkeley) 5/12/87
       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: #define MAXDNSRCH   3       /* max # default domain levels to try */
      17: #define LOCALDOMAINPARTS 2      /* min levels in name that is "local" */
      18:
      19: #define RES_TIMEOUT 4       /* seconds between retries */
      20:
      21: struct state {
      22:     int retrans;        /* retransmition time interval */
      23:     int retry;          /* number of times to retransmit */
      24:     long    options;        /* option flags - see below. */
      25:     int nscount;        /* number of name servers */
      26:     struct  sockaddr_in nsaddr_list[MAXNS]; /* address of name server */
      27: #define nsaddr  nsaddr_list[0]      /* for backward compatibility */
      28:     u_short id;         /* current packet id */
      29:     char    defdname[MAXDNAME]; /* default domain */
      30:     char    *dnsrch[MAXDNSRCH+1];   /* components of domain to search */
      31: };
      32:
      33: /*
      34:  * Resolver options
      35:  */
      36: #define RES_INIT    0x0001      /* address initialized */
      37: #define RES_DEBUG   0x0002      /* print debug messages */
      38: #define RES_AAONLY  0x0004      /* authoritative answers only */
      39: #define RES_USEVC   0x0008      /* use virtual circuit */
      40: #define RES_PRIMARY 0x0010      /* query primary server only */
      41: #define RES_IGNTC   0x0020      /* ignore trucation errors */
      42: #define RES_RECURSE 0x0040      /* recursion desired */
      43: #define RES_DEFNAMES    0x0080      /* use default domain name */
      44: #define RES_STAYOPEN    0x0100      /* Keep TCP socket open */
      45: #define RES_DNSRCH  0x0200      /* search up local domain tree */
      46:
      47: #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)
      48:
      49: extern struct state _res;
      50: extern char *p_cdname(), *p_rr(), *p_type(), *p_class();

#### Defined struct's

state defined in line 21; used 10 times

- in line 49(2)
- in /usr/src/lib/libc/net/res_init.c line 38(2)
- in /usr/src/libexec/popper/pop_init.c line 125(2)
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 82(2)
- in /usr/src/usr.sbin/named/tools/nsquery.c line 40(2)

#### Defined macros

LOCALDOMAINPARTS defined in line 17; used 2 times

- in /usr/src/lib/libc/net/res_init.c line 132
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 931

MAXDNSRCH defined in line 16; used 3 times

- in line 30
- in /usr/src/lib/libc/net/res_init.c line 132
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 957

MAXNS defined in line 15; used 5 times

- in line 26
- in /usr/src/lib/libc/net/res_init.c line 90, 101-102(2)
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 225

RES_AAONLY defined in line 38; never used
RES_DEBUG defined in line 37; used 67 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 151, 181, 233, 265
- in /usr/src/lib/libc/net/res_init.c line 104
- in /usr/src/lib/libc/net/res_mkquery.c line 45
- in /usr/src/lib/libc/net/res_query.c line 60, 68, 77, 87, 194
- in /usr/src/lib/libc/net/res_send.c line 68, 85, 100, 109, 128, 148, 158, 173, 213, 222, 232, 253, 263, 280, 291, 303, 318
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 240, 436
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 269, 633, 689
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 228, 587, 599
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 278, 824, 839-841(2), 995
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 121, 140, 159, 172, 191, 211, 234, 249, 281, 296, 303, 310, 343, 352, 372, 400, 410, 421, 438, 452, 462, 476
- in /usr/src/usr.sbin/named/tools/nsquery.c line 44
- in /usr/src/usr.sbin/named/tools/nstest.c line 54
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 91
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 329

RES_DEFAULT defined in line 47; used 1 times

- in /usr/src/lib/libc/net/res_init.c line 41

RES_DEFNAMES defined in line 43; used 11 times

- in line 47
- in /usr/src/lib/libc/net/res_mkquery.c line 72
- in /usr/src/lib/libc/net/res_query.c line 142
- in /usr/src/libexec/popper/pop_init.c line 130
- in /usr/src/usr.sbin/named/named/ns_main.c line 167
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 557
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 829-831(2), 996
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 379, 464

RES_DNSRCH defined in line 45; used 14 times

- in line 47
- in /usr/src/lib/libc/net/res_query.c line 166
- in /usr/src/libexec/rlogind/rlogind.c line 171, 177
- in /usr/src/libexec/rshd/rshd.c line 239-240(2)
- in /usr/src/usr.sbin/named/named/ns_main.c line 167
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 558, 579
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 888-890(2), 997
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 379, 464

RES_IGNTC defined in line 41; used 6 times

- in /usr/src/lib/libc/net/res_send.c line 298
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 843-845(2), 1002
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 446
- in /usr/src/usr.sbin/named/tools/nstest.c line 68

RES_INIT defined in line 36; used 7 times

- in /usr/src/lib/libc/net/res_init.c line 136
- in /usr/src/lib/libc/net/res_mkquery.c line 74
- in /usr/src/lib/libc/net/res_query.c line 57, 131
- in /usr/src/lib/libc/net/res_send.c line 73
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 936
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 126

RES_PRIMARY defined in line 40; used 3 times

- in /usr/src/lib/libc/net/res_mkquery.c line 55
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 853-855(2)

RES_RECURSE defined in line 42; used 8 times

- in line 47
- in /usr/src/lib/libc/net/res_mkquery.c line 56
- in /usr/src/usr.sbin/named/named/ns_main.c line 167
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 871-873(2), 998
- in /usr/src/usr.sbin/named/tools/nstest.c line 54, 76

RES_STAYOPEN defined in line 44; used 5 times

- in /usr/src/lib/libc/net/named/sethostent.c line 19-24(2)
- in /usr/src/lib/libc/net/res_send.c line 46
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 491
- in /usr/src/usr.sbin/named/tools/nstest.c line 72

RES_TIMEOUT defined in line 19; used 1 times

- in /usr/src/lib/libc/net/res_init.c line 39

RES_USEVC defined in line 39; used 10 times

- in /usr/src/lib/libc/net/named/sethostent.c line 19-24(2)
- in /usr/src/lib/libc/net/res_send.c line 46, 77
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 905-907(2), 1001
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 131, 490
- in /usr/src/usr.sbin/named/tools/nstest.c line 72

nsaddr defined in line 27; used 24 times

- in /usr/src/lib/libc/net/res_init.c line 66-68(3)
- in /usr/src/usr.sbin/named/named/ns_main.c line 47, 261-263(3), 314-316(4), 533, 556-559(4)
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 212, 222
- in /usr/src/usr.sbin/named/tools/nsquery.c line 61
- in /usr/src/usr.sbin/named/tools/nstest.c line 87-92(5)

#### Usage of this include

resolv.h used 20 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 26
- in /usr/src/lib/libc/net/named/sethostent.c line 14
- in /usr/src/lib/libc/net/res_init.c line 22
- in /usr/src/lib/libc/net/res_mkquery.c line 21
- in /usr/src/lib/libc/net/res_query.c line 27
- in /usr/src/lib/libc/net/res_send.c line 29
- in /usr/src/libexec/popper/pop_init.c line 122
- in /usr/src/libexec/rlogind/rlogind.c line 59
- in /usr/src/libexec/rshd/rshd.c line 51
- in /usr/src/usr.sbin/named/named/ns_main.c line 46
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 41
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 44
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 46
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 49
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 50
- in /usr/src/usr.sbin/named/tools/nsquery.c line 33
- in /usr/src/usr.sbin/named/tools/nstest.c line 33
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 33
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 25
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 31

Last modified: 1988-09-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 999 |