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