# 2.11BSD#431 - /usr/include/arpa/nameser.h

##### Macros

    BIG_ENDIAN        X
    BYTE_ORDER        X
    CONV_BADBUFLEN    X
    CONV_BADCKSUM     X
    CONV_BADFMT       X
    CONV_OVERFLOW     X
    CONV_SUCCESS      X
    C_ANY             X
    C_CHAOS           X
    C_HS              X
    C_IN              X
    FORMERR           X
    GETLONG           X
    GETSHORT          X
    INDIR_MASK        X
    IQUERY            X
    LITTLE_ENDIAN     X
    MAXCDNAME         X
    MAXDNAME          X
    MAXLABEL          X
    NAMESERVER_PORT   X
    NOCHANGE          X
    NOERROR           X
    NOTIMP            X
    NXDOMAIN          X
    PACKETSZ          X
    PDP_ENDIAN        X
    PUTLONG           X
    PUTSHORT          X
    QFIXEDSZ          X
    QUERY             X
    REFUSED           X
    RRFIXEDSZ         X
    SERVFAIL          X
    STATUS            X
    T_A               X
    T_ANY             X
    T_AXFR            X
    T_CNAME           X
    T_GID             X
    T_HINFO           X
    T_MAILA           X
    T_MAILB           X
    T_MB              X
    T_MD              X
    T_MF              X
    T_MG              X
    T_MINFO           X
    T_MR              X
    T_MX              X
    T_NS              X
    T_NULL            X
    T_PTR             X
    T_SOA             X
    T_TXT             X
    T_UID             X
    T_UINFO           X
    T_UNSPEC          X
    T_WKS             X
    UPDATEA           X
    UPDATED           X
    UPDATEDA          X
    UPDATEM           X
    UPDATEMA          X
    ZONEINIT          X
    ZONEREF           X

##### struct's

    rrec              X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that the above copyright notice and this paragraph are
       7:  * duplicated in all such forms and that any documentation,
       8:  * advertising materials, and other materials related to such
       9:  * distribution and use acknowledge that the software was developed
      10:  * by the University of California, Berkeley.  The name of the
      11:  * University may not be used to endorse or promote products derived
      12:  * from this software without specific prior written permission.
      13:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      14:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      15:  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      16:  *
      17:  *	@(#)nameser.h	5.20.1 (2.11BSD GTE) 12/31/93
      18: */
      19:
      20: /*
      21:  * Define constants based on rfc883
      22:  */
      23: #define PACKETSZ    512     /* maximum packet size */
      24: #define MAXDNAME    256     /* maximum domain name */
      25: #define MAXCDNAME   255     /* maximum compressed domain name */
      26: #define MAXLABEL    63      /* maximum length of domain label */
      27:     /* Number of bytes of fixed size data in query structure */
      28: #define QFIXEDSZ    4
      29:     /* number of bytes of fixed size data in resource record */
      30: #define RRFIXEDSZ   10
      31:
      32: /*
      33:  * Internet nameserver port number
      34:  */
      35: #define NAMESERVER_PORT 53
      36:
      37: /*
      38:  * Currently defined opcodes
      39:  */
      40: #define QUERY       0x0     /* standard query */
      41: #define IQUERY      0x1     /* inverse query */
      42: #define STATUS      0x2     /* nameserver status query */
      43: /*#define xxx		0x3		/* 0x3 reserved */
      44:     /* non standard */
      45: #define UPDATEA     0x9     /* add resource record */
      46: #define UPDATED     0xa     /* delete a specific resource record */
      47: #define UPDATEDA    0xb     /* delete all nemed resource record */
      48: #define UPDATEM     0xc     /* modify a specific resource record */
      49: #define UPDATEMA    0xd     /* modify all named resource record */
      50:
      51: #define ZONEINIT    0xe     /* initial zone transfer */
      52: #define ZONEREF     0xf     /* incremental zone referesh */
      53:
      54: /*
      55:  * Currently defined response codes
      56:  */
      57: #define NOERROR     0       /* no error */
      58: #define FORMERR     1       /* format error */
      59: #define SERVFAIL    2       /* server failure */
      60: #define NXDOMAIN    3       /* non existent domain */
      61: #define NOTIMP      4       /* not implemented */
      62: #define REFUSED     5       /* query refused */
      63:     /* non standard */
      64: #define NOCHANGE    0xf     /* update failed to change db */
      65:
      66: /*
      67:  * Type values for resources and queries
      68:  */
      69: #define T_A     1       /* host address */
      70: #define T_NS        2       /* authoritative server */
      71: #define T_MD        3       /* mail destination */
      72: #define T_MF        4       /* mail forwarder */
      73: #define T_CNAME     5       /* connonical name */
      74: #define T_SOA       6       /* start of authority zone */
      75: #define T_MB        7       /* mailbox domain name */
      76: #define T_MG        8       /* mail group member */
      77: #define T_MR        9       /* mail rename name */
      78: #define T_NULL      10      /* null resource record */
      79: #define T_WKS       11      /* well known service */
      80: #define T_PTR       12      /* domain name pointer */
      81: #define T_HINFO     13      /* host information */
      82: #define T_MINFO     14      /* mailbox information */
      83: #define T_MX        15      /* mail routing information */
      84: #define T_TXT       16
      85:     /* non standard */
      86: #define T_UINFO     100     /* user (finger) information */
      87: #define T_UID       101     /* user ID */
      88: #define T_GID       102     /* group ID */
      89: #define T_UNSPEC    103     /* Unspecified format (binary data) */
      90:     /* Query type values which do not appear in resource records */
      91: #define T_AXFR      252     /* transfer zone of authority */
      92: #define T_MAILB     253     /* transfer mailbox records */
      93: #define T_MAILA     254     /* transfer mail agent records */
      94: #define T_ANY       255     /* wildcard match */
      95:
      96: /*
      97:  * Values for class field
      98:  */
      99:
     100: #define C_IN        1       /* the arpa internet */
     101: #define C_CHAOS     3       /* for chaos net at MIT */
     102: #define C_HS        4
     103:     /* Query class values which do not appear in resource records */
     104: #define C_ANY       255     /* wildcard match */
     105:
     106: /*
     107:  * Status return codes for T_UNSPEC conversion routines
     108:  */
     109: #define CONV_SUCCESS 0
     110: #define CONV_OVERFLOW -1
     111: #define CONV_BADFMT -2
     112: #define CONV_BADCKSUM -3
     113: #define CONV_BADBUFLEN -4
     114:
     115: #ifndef BYTE_ORDER
     116: #define LITTLE_ENDIAN   1234    /* least-significant byte first (vax) */
     117: #define BIG_ENDIAN  4321    /* most-significant byte first (IBM, net) */
     118: #define PDP_ENDIAN  3412    /* LSB first in word, MSW first in long (pdp) */
     119:
     120: #if defined(vax) || defined(ns32000) || defined(sun386) || \
     121:     defined(BIT_ZERO_ON_RIGHT)
     122: #define BYTE_ORDER  LITTLE_ENDIAN
     123:
     124: #endif
     125: #if defined(sel) || defined(pyr) || defined(mc68000) || defined(sparc) || \
     126:     defined(is68k) || defined (tahoe) || defined (BIT_ZERO_ON_LEFT)
     127: #define BYTE_ORDER  BIG_ENDIAN
     128: #endif
     129: #endif /* BYTE_ORDER */
     130: #if defined(pdp11)
     131: #define BYTE_ORDER  PDP_ENDIAN
     132: #endif
     133:
     134: #ifndef BYTE_ORDER
     135:     /* you must determine what the correct bit order is for your compiler */
     136:     UNDEFINED_BIT_ORDER;
     137: #endif
     138: /*
     139:  * Structure for query header, the order of the fields is machine and
     140:  * compiler dependent, in our case, the bits within a byte are assignd
     141:  * least significant first, while the order of transmition is most
     142:  * significant first.  This requires a somewhat confusing rearrangement.
     143:  */
     144:
     145: typedef struct {
     146:     u_short id;     /* query identification number */
     147: #if BYTE_ORDER == BIG_ENDIAN
     148:             /* fields in third byte */
     149:     u_char  qr:1;       /* response flag */
     150:     u_char  opcode:4;   /* purpose of message */
     151:     u_char  aa:1;       /* authoritive answer */
     152:     u_char  tc:1;       /* truncated message */
     153:     u_char  rd:1;       /* recursion desired */
     154:             /* fields in fourth byte */
     155:     u_char  ra:1;       /* recursion available */
     156:     u_char  pr:1;       /* primary server required (non standard) */
     157:     u_char  unused:2;   /* unused bits */
     158:     u_char  rcode:4;    /* response code */
     159: #endif
     160: #if BYTE_ORDER == LITTLE_ENDIAN
     161:             /* fields in third byte */
     162:     u_char  rd:1;       /* recursion desired */
     163:     u_char  tc:1;       /* truncated message */
     164:     u_char  aa:1;       /* authoritive answer */
     165:     u_char  opcode:4;   /* purpose of message */
     166:     u_char  qr:1;       /* response flag */
     167:             /* fields in fourth byte */
     168:     u_char  rcode:4;    /* response code */
     169:     u_char  unused:2;   /* unused bits */
     170:     u_char  pr:1;       /* primary server required (non standard) */
     171:     u_char  ra:1;       /* recursion available */
     172: #endif
     173: #if BYTE_ORDER == PDP_ENDIAN
     174:     /* Bit zero on right, compiler doesn't like u_char bit fields:  PDP */
     175:             /* fields in third byte */
     176:     u_int   rd:1;       /* recursion desired */
     177:     u_int   tc:1;       /* truncated message */
     178:     u_int   aa:1;       /* authoritive answer */
     179:     u_int   opcode:4;   /* purpose of message */
     180:     u_int   qr:1;       /* response flag */
     181:             /* fields in fourth byte */
     182:     u_int   rcode:4;    /* response code */
     183:     u_int   unused:2;   /* unused bits */
     184:     u_int   pr:1;       /* primary server required (non standard) */
     185:     u_int   ra:1;       /* recursion available */
     186: #endif
     187:             /* remaining bytes */
     188:     u_short qdcount;    /* number of question entries */
     189:     u_short ancount;    /* number of answer entries */
     190:     u_short nscount;    /* number of authority entries */
     191:     u_short arcount;    /* number of resource entries */
     192: } HEADER;
     193:
     194: /*
     195:  * Defines for handling compressed domain names
     196:  */
     197: #define INDIR_MASK  0xc0
     198:
     199: /*
     200:  * Structure for passing resource records around.
     201:  */
     202: struct rrec {
     203:     short   r_zone;         /* zone number */
     204:     short   r_class;        /* class number */
     205:     short   r_type;         /* type number */
     206:     u_long  r_ttl;          /* time to live */
     207:     int r_size;         /* size of data area */
     208:     char    *r_data;        /* pointer to data */
     209: };
     210:
     211: extern  u_short _getshort();
     212: extern  u_long  _getlong();
     213:
     214: /*
     215:  * Inline versions of get/put short/long.
     216:  * Pointer is advanced; we assume that both arguments
     217:  * are lvalues and will already be in registers.
     218:  * cp MUST be u_char *.
     219:  */
     220: #define GETSHORT(s, cp) { \
     221:     (s) = *(cp)++ << 8; \
     222:     (s) |= *(cp)++; \
     223: }
     224:
     225: #define GETLONG(l, cp) { \
     226:     (l) = *(cp)++ << 8; \
     227:     (l) |= *(cp)++; (l) <<= 8; \
     228:     (l) |= *(cp)++; (l) <<= 8; \
     229:     (l) |= *(cp)++; \
     230: }
     231:
     232:
     233: #define PUTSHORT(s, cp) { \
     234:     *(cp)++ = (s) >> 8; \
     235:     *(cp)++ = (s); \
     236: }
     237:
     238: /*
     239:  * Warning: PUTLONG destroys its first argument.
     240:  */
     241: #define PUTLONG(l, cp) { \
     242:     (cp)[3] = l; \
     243:     (cp)[2] = (l >>= 8); \
     244:     (cp)[1] = (l >>= 8); \
     245:     (cp)[0] = l >> 8; \
     246:     (cp) += sizeof(u_long); \
     247: }

#### Defined struct's

rrec defined in line 202; used 8 times

- in /usr/src/lib/libc/net/res_mkquery.c line 33(2)
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 631(2), 687(2)
- in /usr/src/usr.sbin/named/tools/nstest.c line 47(2)

#### Defined macros

BIG_ENDIAN defined in line 117; used 2 times

- in line 127, 147

BYTE_ORDER defined in line 131; used 5 times

- in line 115, 134, 147, 160, 173

CONV_BADBUFLEN defined in line 113; used 1 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 666

CONV_BADCKSUM defined in line 112; used 1 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 684

CONV_BADFMT defined in line 111; used 5 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 595, 620, 675-676(2), 682

CONV_OVERFLOW defined in line 110; used 6 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 486, 670, 762-767(2), 773
- in /usr/src/usr.sbin/named/named/db_load.c line 432

CONV_SUCCESS defined in line 109; used 3 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 621, 685, 775

C_ANY defined in line 104; used 16 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 76
- in /usr/src/usr.sbin/named/named/db_load.c line 49
- in /usr/src/usr.sbin/named/named/db_lookup.c line 160
- in /usr/src/usr.sbin/named/named/ns_req.c line 272
- in /usr/src/usr.sbin/named/named/ns_resp.c line 414, 533, 1396, 1507, 1514, 1549
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 366
- in /usr/src/usr.sbin/named/tools/nstest.c line 118-123(2), 129, 174, 180

C_CHAOS defined in line 101; used 2 times

- in /usr/src/usr.sbin/named/named/db_load.c line 51
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 364

C_HS defined in line 102; used 1 times

- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 362

C_IN defined in line 100; used 43 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 170, 231, 262
- in /usr/src/usr.sbin/named/named/db_load.c line 47, 157
- in /usr/src/usr.sbin/named/named/ns_maint.c line 173, 299
- in /usr/src/usr.sbin/named/named/ns_resp.c line 1097
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 261, 686
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 609, 729
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 107, 334, 344, 506, 742
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 359
- in /usr/src/usr.sbin/named/tools/nstest.c line 106, 113, 134-169(8), 185-215(7), 245, 252, 264, 270, 281, 295
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 49, 167

FORMERR defined in line 58; used 15 times

- in /usr/src/usr.sbin/named/named/ns_req.c line 117, 132, 143, 380, 391, 405, 1064-1065(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 740, 780, 792, 801, 889, 947, 973

GETLONG defined in line 225; used 16 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 361, 411-419(5), 437, 443
- in /usr/src/usr.sbin/named/named/ns_init.c line 409-415(5)
- in /usr/src/usr.sbin/named/named/ns_maint.c line 397
- in /usr/src/usr.sbin/named/named/ns_resp.c line 746, 953

GETSHORT defined in line 220; used 28 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 424
- in /usr/src/usr.sbin/named/named/ns_maint.c line 387
- in /usr/src/usr.sbin/named/named/ns_req.c line 136-137(2), 395-398(3), 1068, 1077-1079(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 268-269(2), 305-308(2), 744-747(3), 951-954(3)
- in /usr/src/usr.sbin/named/named/ns_sort.c line 101-104(3)
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 86-88(2), 98, 210-212(2)

INDIR_MASK defined in line 197; used 6 times

- in /usr/src/lib/libc/net/res_comp.c line 48, 135, 188, 224
- in /usr/src/usr.sbin/named/named/ns_req.c line 123
- in /usr/src/usr.sbin/named/named/ns_resp.c line 260

IQUERY defined in line 41; used 3 times

- in /usr/src/usr.sbin/named/tools/nstest.c line 113, 129, 180

LITTLE_ENDIAN defined in line 116; used 2 times

- in line 122, 160

MAXCDNAME defined in line 25; never used
MAXDNAME defined in line 24; used 27 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 252
- in /usr/src/lib/libc/net/res_debug.c line 175
- in /usr/src/lib/libc/net/res_mkquery.c line 40
- in /usr/src/lib/libc/net/res_query.c line 189, 211(2), 224
- in /usr/src/usr.sbin/named/named/db_dump.c line 290
- in /usr/src/usr.sbin/named/named/db_load.c line 111-113(3)
- in /usr/src/usr.sbin/named/named/ns_maint.c line 124(2)
- in /usr/src/usr.sbin/named/named/ns_req.c line 68, 888, 952, 1047, 1057
- in /usr/src/usr.sbin/named/named/ns_resp.c line 56, 727, 1592
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 180
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 610, 627(2), 678
- in /usr/src/usr.sbin/named/tools/nslookup/res_debug.c line 176

MAXLABEL defined in line 26; used 1 times

- in /usr/src/lib/libc/net/res_comp.c line 164

NAMESERVER_PORT defined in line 35; used 5 times

- in /usr/src/lib/libc/net/res_init.c line 68, 100
- in /usr/src/usr.sbin/named/named/ns_main.c line 166
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 63
- in /usr/src/usr.sbin/named/tools/nstest.c line 43

NOCHANGE defined in line 64; used 7 times

- in /usr/src/usr.sbin/named/named/ns_req.c line 1195-1196(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 848, 909, 931, 965, 988

NOERROR defined in line 57; used 12 times

- in /usr/src/lib/libc/net/res_mkquery.c line 57
- in /usr/src/lib/libc/net/res_query.c line 85
- in /usr/src/usr.sbin/named/named/ns_forw.c line 374
- in /usr/src/usr.sbin/named/named/ns_req.c line 95, 965, 1190, 1210
- in /usr/src/usr.sbin/named/named/ns_resp.c line 101, 116, 345
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 150
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 545

NOTIMP defined in line 61; used 1 times

- in /usr/src/usr.sbin/named/named/ns_req.c line 524

NXDOMAIN defined in line 60; used 15 times

- in /usr/src/usr.sbin/named/named/ns_req.c line 266, 1085-1086(2), 1121-1122(2), 1172-1173(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 101-102(2), 532, 894, 977, 1385
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 542, 578

PACKETSZ defined in line 23; used 17 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 44-45(2)
- in /usr/src/lib/libc/net/res_query.c line 29-30(2)
- in /usr/src/lib/libc/net/res_send.c line 77
- in /usr/src/usr.sbin/named/named/ns_main.c line 687
- in /usr/src/usr.sbin/named/named/ns_maint.c line 123
- in /usr/src/usr.sbin/named/named/ns_req.c line 364, 949
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 73
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 58
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 131
- in /usr/src/usr.sbin/named/tools/nstest.c line 45-46(2)
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 30-34(2), 163

PDP_ENDIAN defined in line 118; used 2 times

- in line 131, 173

PUTLONG defined in line 241; used 9 times

- in /usr/src/usr.sbin/named/named/db_load.c line 279, 328-341(5), 357, 365
- in /usr/src/usr.sbin/named/named/ns_req.c line 704

PUTSHORT defined in line 233; used 10 times

- in /usr/src/usr.sbin/named/named/db_load.c line 410
- in /usr/src/usr.sbin/named/named/ns_req.c line 460-461(2), 702-703(2), 715, 725, 751, 771, 780

QFIXEDSZ defined in line 28; used 15 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 96, 102-104(2)
- in /usr/src/lib/libc/net/res_mkquery.c line 87
- in /usr/src/usr.sbin/named/named/ns_maint.c line 256, 373
- in /usr/src/usr.sbin/named/named/ns_req.c line 451
- in /usr/src/usr.sbin/named/named/ns_resp.c line 467, 477
- in /usr/src/usr.sbin/named/named/ns_sort.c line 99
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 174
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 432, 562
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 74, 191

QUERY defined in line 40; used 31 times

- in /usr/src/lib/libc/net/res_mkquery.c line 97
- in /usr/src/lib/libc/net/res_query.c line 63
- in /usr/src/usr.sbin/named/named/ns_maint.c line 173, 299
- in /usr/src/usr.sbin/named/named/ns_req.c line 330, 962
- in /usr/src/usr.sbin/named/named/ns_resp.c line 103, 616, 1161
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 630, 686
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 224
- in /usr/src/usr.sbin/named/tools/nstest.c line 106, 118-123(2), 134-174(9), 185-215(7)

REFUSED defined in line 62; used 8 times

- in /usr/src/usr.sbin/named/named/ns_req.c line 168, 245, 416, 1070-1075(2), 1095-1100(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 875

RRFIXEDSZ defined in line 30; used 6 times

- in /usr/src/lib/libc/net/res_mkquery.c line 102, 122, 155, 178
- in /usr/src/usr.sbin/named/named/ns_req.c line 697
- in /usr/src/usr.sbin/named/tools/nslookup/skip.c line 162

SERVFAIL defined in line 59; used 10 times

- in /usr/src/usr.sbin/named/named/ns_forw.c line 390
- in /usr/src/usr.sbin/named/named/ns_main.c line 835
- in /usr/src/usr.sbin/named/named/ns_req.c line 288, 324, 352, 1150-1151(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 702, 1387, 1445

STATUS defined in line 42; never used
T_A defined in line 69; used 39 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 149, 231
- in /usr/src/usr.sbin/named/named/db_load.c line 56
- in /usr/src/usr.sbin/named/named/db_update.c line 66
- in /usr/src/usr.sbin/named/named/ns_forw.c line 204, 222, 251
- in /usr/src/usr.sbin/named/named/ns_req.c line 844, 873-874(2), 1000
- in /usr/src/usr.sbin/named/named/ns_resp.c line 192, 231, 1307, 1313, 1324, 1331
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 191, 237, 283, 323, 333, 410, 430, 528
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 177-182(2), 572
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 106, 334, 344, 506, 579, 597, 742
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 389
- in /usr/src/usr.sbin/named/tools/nstest.c line 106, 113, 237

T_ANY defined in line 94; used 17 times

- in /usr/src/usr.sbin/named/named/db_load.c line 73
- in /usr/src/usr.sbin/named/named/db_lookup.c line 162
- in /usr/src/usr.sbin/named/named/ns_req.c line 153, 226
- in /usr/src/usr.sbin/named/named/ns_resp.c line 352, 504, 1511
- in /usr/src/usr.sbin/named/named/ns_stats.c line 67-68(2), 124
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 175, 571, 598, 636
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 419
- in /usr/src/usr.sbin/named/tools/nstest.c line 215
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 167

T_AXFR defined in line 91; used 6 times

- in /usr/src/usr.sbin/named/named/ns_maint.c line 300
- in /usr/src/usr.sbin/named/named/ns_req.c line 161, 239
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 224
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 413
- in /usr/src/usr.sbin/named/tools/nstest.c line 185

T_CNAME defined in line 73; used 16 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 129
- in /usr/src/usr.sbin/named/named/db_load.c line 58
- in /usr/src/usr.sbin/named/named/db_update.c line 91-92(2)
- in /usr/src/usr.sbin/named/named/ns_req.c line 226
- in /usr/src/usr.sbin/named/named/ns_resp.c line 312, 345, 504, 1470, 1510
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 208
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 167, 306
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 395
- in /usr/src/usr.sbin/named/tools/nstest.c line 134
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 213

T_GID defined in line 88; used 4 times

- in /usr/src/usr.sbin/named/named/db_load.c line 71
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 425
- in /usr/src/usr.sbin/named/tools/nstest.c line 123, 129

T_HINFO defined in line 81; used 4 times

- in /usr/src/usr.sbin/named/named/db_load.c line 66
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 169
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 409
- in /usr/src/usr.sbin/named/tools/nstest.c line 139

T_MAILA defined in line 93; used 1 times

- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 415

T_MAILB defined in line 92; used 2 times

- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 417
- in /usr/src/usr.sbin/named/tools/nstest.c line 149

T_MB defined in line 75; used 3 times

- in /usr/src/usr.sbin/named/named/db_load.c line 60
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 399
- in /usr/src/usr.sbin/named/tools/nstest.c line 195

T_MD defined in line 71; never used
T_MF defined in line 72; never used
T_MG defined in line 76; used 3 times

- in /usr/src/usr.sbin/named/named/db_load.c line 61
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 401
- in /usr/src/usr.sbin/named/tools/nstest.c line 200

T_MINFO defined in line 82; used 5 times

- in /usr/src/usr.sbin/named/named/db_load.c line 67, 320
- in /usr/src/usr.sbin/named/named/ns_req.c line 738
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 411
- in /usr/src/usr.sbin/named/tools/nstest.c line 205

T_MR defined in line 77; used 3 times

- in /usr/src/usr.sbin/named/named/db_load.c line 62
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 403
- in /usr/src/usr.sbin/named/tools/nstest.c line 210

T_MX defined in line 83; used 6 times

- in /usr/src/usr.sbin/named/named/db_load.c line 68
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 171
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 393
- in /usr/src/usr.sbin/named/tools/nstest.c line 144
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 49, 89

T_NS defined in line 70; used 19 times

- in /usr/src/usr.sbin/named/named/db_dump.c line 158
- in /usr/src/usr.sbin/named/named/db_load.c line 57
- in /usr/src/usr.sbin/named/named/db_save.c line 67
- in /usr/src/usr.sbin/named/named/db_update.c line 65
- in /usr/src/usr.sbin/named/named/ns_req.c line 981, 989, 1140
- in /usr/src/usr.sbin/named/named/ns_resp.c line 328, 1008, 1097, 1236, 1251, 1294, 1395, 1413
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 362
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 572
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 391
- in /usr/src/usr.sbin/named/tools/nstest.c line 154

T_NULL defined in line 78; used 2 times

- in /usr/src/lib/libc/net/res_mkquery.c line 107
- in /usr/src/usr.sbin/named/named/db_load.c line 63

T_PTR defined in line 80; used 13 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 139, 262
- in /usr/src/usr.sbin/named/named/db_load.c line 65
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 191, 223, 283, 686, 694
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 572, 637
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 582
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 407
- in /usr/src/usr.sbin/named/tools/nstest.c line 159

T_SOA defined in line 74; used 20 times

- in /usr/src/usr.sbin/named/named/db_load.c line 59
- in /usr/src/usr.sbin/named/named/db_update.c line 348
- in /usr/src/usr.sbin/named/named/ns_maint.c line 174, 388, 500
- in /usr/src/usr.sbin/named/named/ns_req.c line 744, 979, 1069, 1160
- in /usr/src/usr.sbin/named/named/ns_resp.c line 798, 806, 870, 1377, 1573
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 246, 436
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 435, 588
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 397
- in /usr/src/usr.sbin/named/tools/nstest.c line 164

T_TXT defined in line 84; used 3 times

- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 308
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 427
- in /usr/src/usr.sbin/named/tools/nstest.c line 169

T_UID defined in line 87; used 6 times

- in /usr/src/usr.sbin/named/named/db_load.c line 70
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 379-384(2)
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 423
- in /usr/src/usr.sbin/named/tools/nstest.c line 174, 180

T_UINFO defined in line 86; used 3 times

- in /usr/src/usr.sbin/named/named/db_load.c line 69
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 421
- in /usr/src/usr.sbin/named/tools/nstest.c line 118

T_UNSPEC defined in line 89; used 5 times

- in /usr/src/usr.sbin/named/named/db_load.c line 76, 258
- in /usr/src/usr.sbin/named/tools/nstest.c line 228, 281, 295

T_WKS defined in line 79; used 4 times

- in /usr/src/usr.sbin/named/named/db_load.c line 64
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 173
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 405
- in /usr/src/usr.sbin/named/tools/nstest.c line 190

UPDATEA defined in line 45; used 2 times

- in /usr/src/usr.sbin/named/named/ns_resp.c line 117
- in /usr/src/usr.sbin/named/tools/nstest.c line 252

UPDATED defined in line 46; used 6 times

- in /usr/src/lib/libc/net/res_mkquery.c line 171
- in /usr/src/usr.sbin/named/named/ns_resp.c line 117, 883, 897, 935
- in /usr/src/usr.sbin/named/tools/nstest.c line 295

UPDATEDA defined in line 47; used 6 times

- in /usr/src/lib/libc/net/res_mkquery.c line 171
- in /usr/src/usr.sbin/named/named/ns_resp.c line 118, 883, 926, 935
- in /usr/src/usr.sbin/named/tools/nstest.c line 281

UPDATEM defined in line 48; used 3 times

- in /usr/src/usr.sbin/named/named/ns_resp.c line 118, 897
- in /usr/src/usr.sbin/named/tools/nstest.c line 264

UPDATEMA defined in line 49; used 2 times

- in /usr/src/usr.sbin/named/named/ns_resp.c line 119
- in /usr/src/usr.sbin/named/tools/nstest.c line 269

ZONEINIT defined in line 51; never used
ZONEREF defined in line 52; never used

#### Usage of this include

nameser.h used 38 times

- in /usr/src/lib/libc/net/named/gethnamadr.c line 25
- in /usr/src/lib/libc/net/named/sethostent.c line 12
- in /usr/src/lib/libc/net/res_comp.c line 19
- in /usr/src/lib/libc/net/res_debug.c line 24
- in /usr/src/lib/libc/net/res_init.c line 21
- in /usr/src/lib/libc/net/res_mkquery.c line 20
- in /usr/src/lib/libc/net/res_query.c line 26
- in /usr/src/lib/libc/net/res_send.c line 28
- in /usr/src/libexec/popper/pop_init.c line 121
- in /usr/src/libexec/rlogind/rlogind.c line 58
- in /usr/src/libexec/rshd/rshd.c line 50
- in /usr/src/usr.sbin/named/named/db_dump.c line 24
- in /usr/src/usr.sbin/named/named/db_load.c line 29
- in /usr/src/usr.sbin/named/named/db_lookup.c line 23
- in /usr/src/usr.sbin/named/named/db_reload.c line 22
- in /usr/src/usr.sbin/named/named/db_save.c line 24
- in /usr/src/usr.sbin/named/named/db_update.c line 23
- in /usr/src/usr.sbin/named/named/ns_forw.c line 23
- in /usr/src/usr.sbin/named/named/ns_init.c line 26
- in /usr/src/usr.sbin/named/named/ns_main.c line 44
- in /usr/src/usr.sbin/named/named/ns_maint.c line 28
- in /usr/src/usr.sbin/named/named/ns_req.c line 25
- in /usr/src/usr.sbin/named/named/ns_resp.c line 24
- in /usr/src/usr.sbin/named/named/ns_sort.c line 24
- in /usr/src/usr.sbin/named/named/ns_stats.c line 30
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line 39
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 42
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 44
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 47
- in /usr/src/usr.sbin/named/tools/nslookup/res_debug.c line 29
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 48
- in /usr/src/usr.sbin/named/tools/nslookup/skip.c line 44
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 44
- in /usr/src/usr.sbin/named/tools/nsquery.c line 29
- in /usr/src/usr.sbin/named/tools/nstest.c line 32
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 32
- in /usr/src/usr.sbin/sendmail.MX/src/domain.c line 24
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 30

Last modified: 1994-01-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2607 |