Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 1 | /*
|
| 2 | * Copyright (c) 1995,1996 by Internet Software Consortium.
|
| 3 | *
|
| 4 | * Permission to use, copy, modify, and distribute this software for any
|
| 5 | * purpose with or without fee is hereby granted, provided that the above
|
| 6 | * copyright notice and this permission notice appear in all copies.
|
| 7 | *
|
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
| 9 | * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
| 10 | * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
| 11 | * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
| 12 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
| 13 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 14 | * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
| 15 | * SOFTWARE.
|
| 16 | */
|
| 17 |
|
| 18 | #if defined(LIBC_SCCS) && !defined(lint)
|
| 19 | static char rcsid[] = "$Id: res_data.c,v 1.1.1.1 2003/11/19 01:51:35 kyu3 Exp $";
|
| 20 | #endif /* LIBC_SCCS and not lint */
|
| 21 |
|
| 22 | #include <sys/types.h>
|
| 23 | #include <sys/param.h>
|
| 24 | #include <sys/socket.h>
|
| 25 | #include <sys/time.h>
|
| 26 | #include <netinet/in.h>
|
| 27 | #include <arpa/inet.h>
|
| 28 | #include <arpa/nameser.h>
|
| 29 | #include <ctype.h>
|
| 30 | #include <resolv.h>
|
| 31 | #include <stdio.h>
|
| 32 | #include <stdlib.h>
|
| 33 | #include <string.h>
|
| 34 | #include <unistd.h>
|
| 35 |
|
| 36 | #include "res_config.h"
|
| 37 |
|
| 38 | const char *_res_opcodes[] = {
|
| 39 | "QUERY",
|
| 40 | "IQUERY",
|
| 41 | "CQUERYM",
|
| 42 | "CQUERYU", /* experimental */
|
| 43 | "NOTIFY", /* experimental */
|
| 44 | "UPDATE",
|
| 45 | "6",
|
| 46 | "7",
|
| 47 | "8",
|
| 48 | "9",
|
| 49 | "10",
|
| 50 | "11",
|
| 51 | "12",
|
| 52 | "13",
|
| 53 | "ZONEINIT",
|
| 54 | "ZONEREF",
|
| 55 | };
|
| 56 |
|
| 57 | const char *_res_resultcodes[] = {
|
| 58 | "NOERROR",
|
| 59 | "FORMERR",
|
| 60 | "SERVFAIL",
|
| 61 | "NXDOMAIN",
|
| 62 | "NOTIMP",
|
| 63 | "REFUSED",
|
| 64 | "YXDOMAIN",
|
| 65 | "YXRRSET",
|
| 66 | "NXRRSET",
|
| 67 | "NOTAUTH",
|
| 68 | "ZONEERR",
|
| 69 | "11",
|
| 70 | "12",
|
| 71 | "13",
|
| 72 | "14",
|
| 73 | "NOCHANGE",
|
| 74 | };
|
| 75 |
|
| 76 | #ifdef BIND_UPDATE
|
| 77 | const char *_res_sectioncodes[] = {
|
| 78 | "ZONE",
|
| 79 | "PREREQUISITES",
|
| 80 | "UPDATE",
|
| 81 | "ADDITIONAL",
|
| 82 | };
|
| 83 | #endif
|