Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / dhcp / common / tables.c
bloba89202fe8c5e21eb34af8e5e60fd42024da59bee
1 /* tables.c
3 Tables of information... */
5 /*
6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1995-2003 by Internet Software Consortium
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 * Internet Systems Consortium, Inc.
22 * 950 Charter Street
23 * Redwood City, CA 94063
24 * <info@isc.org>
25 * http://www.isc.org/
27 * This software has been written for Internet Systems Consortium
28 * by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc.
29 * To learn more about Internet Systems Consortium, see
30 * ``http://www.isc.org/''. To learn more about Vixie Enterprises,
31 * see ``http://www.vix.com''. To learn more about Nominum, Inc., see
32 * ``http://www.nominum.com''.
35 #ifndef lint
36 static char copyright[] =
37 "$Id: tables.c,v 1.6 2007/03/01 01:02:33 dogcow Exp $ Copyright (c) 2004 Internet Systems Consortium. All rights reserved.\n";
38 #endif /* not lint */
40 #include "dhcpd.h"
42 /* XXXDPN: Moved here from hash.c, when it moved to libomapi. Not sure
43 where these really belong. */
44 HASH_FUNCTIONS (group, const char *, struct group_object, group_hash_t,
45 group_reference, group_dereference)
46 HASH_FUNCTIONS (universe, const char *, struct universe, universe_hash_t, 0, 0)
47 HASH_FUNCTIONS (option, const char *, struct option, option_hash_t, 0, 0)
49 /* DHCP Option names, formats and codes, from RFC1533.
51 Format codes:
53 I - IP address
54 l - 32-bit signed integer
55 L - 32-bit unsigned integer
56 s - 16-bit signed integer
57 S - 16-bit unsigned integer
58 b - 8-bit signed integer
59 B - 8-bit unsigned integer
60 t - ASCII text
61 f - flag (true or false)
62 A - array of whatever precedes (e.g., IA means array of IP addresses)
63 a - array of the preceding character (e.g., IIa means two or more IP
64 addresses)
65 U - name of an option space (universe)
66 F - implicit flag - the presence of the option indicates that the
67 flag is true.
68 o - the preceding value is optional.
69 E - encapsulation, string or colon-seperated hex list (the latter
70 two for parsing). E is followed by a text string containing
71 the name of the option space to encapsulate, followed by a '.'.
72 If the E is immediately followed by '.', the applicable vendor
73 option space is used if one is defined.
74 e - If an encapsulation directive is not the first thing in the string,
75 the option scanner requires an efficient way to find the encapsulation.
76 This is done by placing a 'e' at the beginning of the option. The
77 'e' has no other purpose, and is not required if 'E' is the first
78 thing in the option.
79 X - either an ASCII string or binary data. On output, the string is
80 scanned to see if it's printable ASCII and, if so, output as a
81 quoted string. If not, it's output as colon-seperated hex. On
82 input, the option can be specified either as a quoted string or as
83 a colon-seperated hex list.
84 N - enumeration. N is followed by a text string containing
85 the name of the set of enumeration values to parse or emit,
86 followed by a '.'. The width of the data is specified in the
87 named enumeration. Named enumerations are tracked in parse.c.
88 d - Domain name (i.e., FOO or FOO.BAR).
91 struct universe dhcp_universe;
92 struct option dhcp_options[] = {
93 { "pad", "", &dhcp_universe, 0 },
94 { "subnet-mask", "I", &dhcp_universe, 1 },
95 { "time-offset", "l", &dhcp_universe, 2 },
96 { "routers", "IA", &dhcp_universe, 3 },
97 { "time-servers", "IA", &dhcp_universe, 4 },
98 { "ien116-name-servers", "IA", &dhcp_universe, 5 },
99 { "domain-name-servers", "IA", &dhcp_universe, 6 },
100 { "log-servers", "IA", &dhcp_universe, 7 },
101 { "cookie-servers", "IA", &dhcp_universe, 8 },
102 { "lpr-servers", "IA", &dhcp_universe, 9 },
103 { "impress-servers", "IA", &dhcp_universe, 10 },
104 { "resource-location-servers", "IA", &dhcp_universe, 11 },
105 { "host-name", "X", &dhcp_universe, 12 },
106 { "boot-size", "S", &dhcp_universe, 13 },
107 { "merit-dump", "t", &dhcp_universe, 14 },
108 { "domain-name", "t", &dhcp_universe, 15 },
109 { "swap-server", "I", &dhcp_universe, 16 },
110 { "root-path", "t", &dhcp_universe, 17 },
111 { "extensions-path", "t", &dhcp_universe, 18 },
112 { "ip-forwarding", "f", &dhcp_universe, 19 },
113 { "non-local-source-routing", "f", &dhcp_universe, 20 },
114 { "policy-filter", "IIA", &dhcp_universe, 21 },
115 { "max-dgram-reassembly", "S", &dhcp_universe, 22 },
116 { "default-ip-ttl", "B", &dhcp_universe, 23 },
117 { "path-mtu-aging-timeout", "L", &dhcp_universe, 24 },
118 { "path-mtu-plateau-table", "SA", &dhcp_universe, 25 },
119 { "interface-mtu", "S", &dhcp_universe, 26 },
120 { "all-subnets-local", "f", &dhcp_universe, 27 },
121 { "broadcast-address", "I", &dhcp_universe, 28 },
122 { "perform-mask-discovery", "f", &dhcp_universe, 29 },
123 { "mask-supplier", "f", &dhcp_universe, 30 },
124 { "router-discovery", "f", &dhcp_universe, 31 },
125 { "router-solicitation-address", "I", &dhcp_universe, 32 },
126 { "static-routes", "IIA", &dhcp_universe, 33 },
127 { "trailer-encapsulation", "f", &dhcp_universe, 34 },
128 { "arp-cache-timeout", "L", &dhcp_universe, 35 },
129 { "ieee802-3-encapsulation", "f", &dhcp_universe, 36 },
130 { "default-tcp-ttl", "B", &dhcp_universe, 37 },
131 { "tcp-keepalive-interval", "L", &dhcp_universe, 38 },
132 { "tcp-keepalive-garbage", "f", &dhcp_universe, 39 },
133 { "nis-domain", "t", &dhcp_universe, 40 },
134 { "nis-servers", "IA", &dhcp_universe, 41 },
135 { "ntp-servers", "IA", &dhcp_universe, 42 },
136 { "vendor-encapsulated-options", "E.", &dhcp_universe, 43 },
137 { "netbios-name-servers", "IA", &dhcp_universe, 44 },
138 { "netbios-dd-server", "IA", &dhcp_universe, 45 },
139 { "netbios-node-type", "B", &dhcp_universe, 46 },
140 { "netbios-scope", "t", &dhcp_universe, 47 },
141 { "font-servers", "IA", &dhcp_universe, 48 },
142 { "x-display-manager", "IA", &dhcp_universe, 49 },
143 { "dhcp-requested-address", "I", &dhcp_universe, 50 },
144 { "dhcp-lease-time", "L", &dhcp_universe, 51 },
145 { "dhcp-option-overload", "B", &dhcp_universe, 52 },
146 { "dhcp-message-type", "B", &dhcp_universe, 53 },
147 { "dhcp-server-identifier", "I", &dhcp_universe, 54 },
148 { "dhcp-parameter-request-list", "BA", &dhcp_universe, 55 },
149 { "dhcp-message", "t", &dhcp_universe, 56 },
150 { "dhcp-max-message-size", "S", &dhcp_universe, 57 },
151 { "dhcp-renewal-time", "L", &dhcp_universe, 58 },
152 { "dhcp-rebinding-time", "L", &dhcp_universe, 59 },
153 { "vendor-class-identifier", "X", &dhcp_universe, 60 },
154 { "dhcp-client-identifier", "X", &dhcp_universe, 61 },
155 { "nwip-domain", "X", &dhcp_universe, 62 },
156 { "nwip-suboptions", "Enwip.", &dhcp_universe, 63 },
157 { "nisplus-domain", "t", &dhcp_universe, 64 },
158 { "nisplus-servers", "IA", &dhcp_universe, 65 },
159 { "tftp-server-name", "t", &dhcp_universe, 66 },
160 { "bootfile-name", "t", &dhcp_universe, 67 },
161 { "mobile-ip-home-agent", "IA", &dhcp_universe, 68 },
162 { "smtp-server", "IA", &dhcp_universe, 69 },
163 { "pop-server", "IA", &dhcp_universe, 70 },
164 { "nntp-server", "IA", &dhcp_universe, 71 },
165 { "www-server", "IA", &dhcp_universe, 72 },
166 { "finger-server", "IA", &dhcp_universe, 73 },
167 { "irc-server", "IA", &dhcp_universe, 74 },
168 { "streettalk-server", "IA", &dhcp_universe, 75 },
169 { "streettalk-directory-assistance-server", "IA", &dhcp_universe, 76 },
170 { "user-class", "t", &dhcp_universe, 77 },
171 { "slp-directory-agent", "fIa", &dhcp_universe, 78 },
172 { "slp-service-scope", "fto", &dhcp_universe, 79 },
173 { "unknown-80", "X", &dhcp_universe, 80 },
174 { "fqdn", "Efqdn.", &dhcp_universe, 81 },
175 { "relay-agent-information", "Eagent.", &dhcp_universe, 82 },
176 { "unknown-83", "X", &dhcp_universe, 83 },
177 { "unknown-84", "X", &dhcp_universe, 84 },
178 { "nds-servers", "IA", &dhcp_universe, 85 },
179 { "nds-tree-name", "X", &dhcp_universe, 86 },
180 { "nds-context", "X", &dhcp_universe, 87 },
181 { "unknown-88", "X", &dhcp_universe, 88 },
182 { "unknown-89", "X", &dhcp_universe, 89 },
183 { "unknown-90", "X", &dhcp_universe, 90 },
184 { "unknown-91", "X", &dhcp_universe, 91 },
185 { "unknown-92", "X", &dhcp_universe, 92 },
186 { "pxe-client-arch-id", "X", &dhcp_universe, 93 },
187 { "pxe-client-netif-id", "X", &dhcp_universe, 94 },
188 { "unknown-95", "X", &dhcp_universe, 95 },
189 { "unknown-96", "X", &dhcp_universe, 96 },
190 { "pxe-uuid", "X", &dhcp_universe, 97 },
191 { "uap-servers", "t", &dhcp_universe, 98 },
192 { "unknown-99", "X", &dhcp_universe, 99 },
193 { "unknown-100", "X", &dhcp_universe, 100 },
194 { "unknown-101", "X", &dhcp_universe, 101 },
195 { "unknown-102", "X", &dhcp_universe, 102 },
196 { "unknown-103", "X", &dhcp_universe, 103 },
197 { "unknown-104", "X", &dhcp_universe, 104 },
198 { "unknown-105", "X", &dhcp_universe, 105 },
199 { "unknown-106", "X", &dhcp_universe, 106 },
200 { "unknown-107", "X", &dhcp_universe, 107 },
201 { "unknown-108", "X", &dhcp_universe, 108 },
202 { "unknown-109", "X", &dhcp_universe, 109 },
203 { "unknown-110", "X", &dhcp_universe, 110 },
204 { "unknown-111", "X", &dhcp_universe, 111 },
205 { "unknown-112", "X", &dhcp_universe, 112 },
206 { "unknown-113", "X", &dhcp_universe, 113 },
207 { "unknown-114", "X", &dhcp_universe, 114 },
208 { "unknown-115", "X", &dhcp_universe, 115 },
209 { "unknown-116", "X", &dhcp_universe, 116 },
210 { "unknown-117", "X", &dhcp_universe, 117 },
211 { "subnet-selection", "X", &dhcp_universe, 118 },
212 { "unknown-119", "X", &dhcp_universe, 119 },
213 { "unknown-120", "X", &dhcp_universe, 120 },
214 { "unknown-121", "X", &dhcp_universe, 121 },
215 { "unknown-122", "X", &dhcp_universe, 122 },
216 { "unknown-123", "X", &dhcp_universe, 123 },
217 { "unknown-124", "X", &dhcp_universe, 124 },
218 { "unknown-125", "X", &dhcp_universe, 125 },
219 { "unknown-126", "X", &dhcp_universe, 126 },
220 { "unknown-127", "X", &dhcp_universe, 127 },
221 { "unknown-128", "X", &dhcp_universe, 128 },
222 { "unknown-129", "X", &dhcp_universe, 129 },
223 { "unknown-130", "X", &dhcp_universe, 130 },
224 { "unknown-131", "X", &dhcp_universe, 131 },
225 { "unknown-132", "X", &dhcp_universe, 132 },
226 { "unknown-133", "X", &dhcp_universe, 133 },
227 { "unknown-134", "X", &dhcp_universe, 134 },
228 { "unknown-135", "X", &dhcp_universe, 135 },
229 { "unknown-136", "X", &dhcp_universe, 136 },
230 { "unknown-137", "X", &dhcp_universe, 137 },
231 { "unknown-138", "X", &dhcp_universe, 138 },
232 { "unknown-139", "X", &dhcp_universe, 139 },
233 { "unknown-140", "X", &dhcp_universe, 140 },
234 { "unknown-141", "X", &dhcp_universe, 141 },
235 { "unknown-142", "X", &dhcp_universe, 142 },
236 { "unknown-143", "X", &dhcp_universe, 143 },
237 { "unknown-144", "X", &dhcp_universe, 144 },
238 { "unknown-145", "X", &dhcp_universe, 145 },
239 { "unknown-146", "X", &dhcp_universe, 146 },
240 { "unknown-147", "X", &dhcp_universe, 147 },
241 { "unknown-148", "X", &dhcp_universe, 148 },
242 { "unknown-149", "X", &dhcp_universe, 149 },
243 { "unknown-150", "X", &dhcp_universe, 150 },
244 { "unknown-151", "X", &dhcp_universe, 151 },
245 { "unknown-152", "X", &dhcp_universe, 152 },
246 { "unknown-153", "X", &dhcp_universe, 153 },
247 { "unknown-154", "X", &dhcp_universe, 154 },
248 { "unknown-155", "X", &dhcp_universe, 155 },
249 { "unknown-156", "X", &dhcp_universe, 156 },
250 { "unknown-157", "X", &dhcp_universe, 157 },
251 { "unknown-158", "X", &dhcp_universe, 158 },
252 { "unknown-159", "X", &dhcp_universe, 159 },
253 { "unknown-160", "X", &dhcp_universe, 160 },
254 { "unknown-161", "X", &dhcp_universe, 161 },
255 { "unknown-162", "X", &dhcp_universe, 162 },
256 { "unknown-163", "X", &dhcp_universe, 163 },
257 { "unknown-164", "X", &dhcp_universe, 164 },
258 { "unknown-165", "X", &dhcp_universe, 165 },
259 { "unknown-166", "X", &dhcp_universe, 166 },
260 { "unknown-167", "X", &dhcp_universe, 167 },
261 { "unknown-168", "X", &dhcp_universe, 168 },
262 { "unknown-169", "X", &dhcp_universe, 169 },
263 { "unknown-170", "X", &dhcp_universe, 170 },
264 { "unknown-171", "X", &dhcp_universe, 171 },
265 { "unknown-172", "X", &dhcp_universe, 172 },
266 { "unknown-173", "X", &dhcp_universe, 173 },
267 { "unknown-174", "X", &dhcp_universe, 174 },
268 { "unknown-175", "X", &dhcp_universe, 175 },
269 { "unknown-176", "X", &dhcp_universe, 176 },
270 { "unknown-177", "X", &dhcp_universe, 177 },
271 { "unknown-178", "X", &dhcp_universe, 178 },
272 { "unknown-179", "X", &dhcp_universe, 179 },
273 { "unknown-180", "X", &dhcp_universe, 180 },
274 { "unknown-181", "X", &dhcp_universe, 181 },
275 { "unknown-182", "X", &dhcp_universe, 182 },
276 { "unknown-183", "X", &dhcp_universe, 183 },
277 { "unknown-184", "X", &dhcp_universe, 184 },
278 { "unknown-185", "X", &dhcp_universe, 185 },
279 { "unknown-186", "X", &dhcp_universe, 186 },
280 { "unknown-187", "X", &dhcp_universe, 187 },
281 { "unknown-188", "X", &dhcp_universe, 188 },
282 { "unknown-189", "X", &dhcp_universe, 189 },
283 { "unknown-190", "X", &dhcp_universe, 190 },
284 { "unknown-191", "X", &dhcp_universe, 191 },
285 { "unknown-192", "X", &dhcp_universe, 192 },
286 { "unknown-193", "X", &dhcp_universe, 193 },
287 { "unknown-194", "X", &dhcp_universe, 194 },
288 { "unknown-195", "X", &dhcp_universe, 195 },
289 { "unknown-196", "X", &dhcp_universe, 196 },
290 { "unknown-197", "X", &dhcp_universe, 197 },
291 { "unknown-198", "X", &dhcp_universe, 198 },
292 { "unknown-199", "X", &dhcp_universe, 199 },
293 { "unknown-200", "X", &dhcp_universe, 200 },
294 { "unknown-201", "X", &dhcp_universe, 201 },
295 { "unknown-202", "X", &dhcp_universe, 202 },
296 { "unknown-203", "X", &dhcp_universe, 203 },
297 { "unknown-204", "X", &dhcp_universe, 204 },
298 { "unknown-205", "X", &dhcp_universe, 205 },
299 { "unknown-206", "X", &dhcp_universe, 206 },
300 { "unknown-207", "X", &dhcp_universe, 207 },
301 { "unknown-208", "X", &dhcp_universe, 208 },
302 { "unknown-209", "X", &dhcp_universe, 209 },
303 { "authenticate", "X", &dhcp_universe, 210 },
304 { "unknown-211", "X", &dhcp_universe, 211 },
305 { "unknown-212", "X", &dhcp_universe, 212 },
306 { "unknown-213", "X", &dhcp_universe, 213 },
307 { "unknown-214", "X", &dhcp_universe, 214 },
308 { "unknown-215", "X", &dhcp_universe, 215 },
309 { "unknown-216", "X", &dhcp_universe, 216 },
310 { "unknown-217", "X", &dhcp_universe, 217 },
311 { "unknown-218", "X", &dhcp_universe, 218 },
312 { "unknown-219", "X", &dhcp_universe, 219 },
313 { "unknown-220", "X", &dhcp_universe, 220 },
314 { "unknown-221", "X", &dhcp_universe, 221 },
315 { "unknown-222", "X", &dhcp_universe, 222 },
316 { "unknown-223", "X", &dhcp_universe, 223 },
317 { "unknown-224", "X", &dhcp_universe, 224 },
318 { "unknown-225", "X", &dhcp_universe, 225 },
319 { "unknown-226", "X", &dhcp_universe, 226 },
320 { "unknown-227", "X", &dhcp_universe, 227 },
321 { "unknown-228", "X", &dhcp_universe, 228 },
322 { "unknown-229", "X", &dhcp_universe, 229 },
323 { "unknown-230", "X", &dhcp_universe, 230 },
324 { "unknown-231", "X", &dhcp_universe, 231 },
325 { "unknown-232", "X", &dhcp_universe, 232 },
326 { "unknown-233", "X", &dhcp_universe, 233 },
327 { "unknown-234", "X", &dhcp_universe, 234 },
328 { "unknown-235", "X", &dhcp_universe, 235 },
329 { "unknown-236", "X", &dhcp_universe, 236 },
330 { "unknown-237", "X", &dhcp_universe, 237 },
331 { "unknown-238", "X", &dhcp_universe, 238 },
332 { "unknown-239", "X", &dhcp_universe, 239 },
333 { "unknown-240", "X", &dhcp_universe, 240 },
334 { "unknown-241", "X", &dhcp_universe, 241 },
335 { "unknown-242", "X", &dhcp_universe, 242 },
336 { "unknown-243", "X", &dhcp_universe, 243 },
337 { "unknown-244", "X", &dhcp_universe, 244 },
338 { "unknown-245", "X", &dhcp_universe, 245 },
339 { "unknown-246", "X", &dhcp_universe, 246 },
340 { "unknown-247", "X", &dhcp_universe, 247 },
341 { "unknown-248", "X", &dhcp_universe, 248 },
342 { "unknown-249", "X", &dhcp_universe, 249 },
343 { "unknown-250", "X", &dhcp_universe, 250 },
344 { "unknown-251", "X", &dhcp_universe, 251 },
345 { "unknown-252", "X", &dhcp_universe, 252 },
346 { "unknown-253", "X", &dhcp_universe, 253 },
347 { "unknown-254", "X", &dhcp_universe, 254 },
348 { "option-end", "e", &dhcp_universe, 255 },
351 struct universe nwip_universe;
352 struct option nwip_options[] = {
353 { "pad", "", &nwip_universe, 0 },
354 { "illegal-1", "", &nwip_universe, 1 },
355 { "illegal-2", "", &nwip_universe, 2 },
356 { "illegal-3", "", &nwip_universe, 3 },
357 { "illegal-4", "", &nwip_universe, 4 },
358 { "nsq-broadcast", "f", &nwip_universe, 5 },
359 { "preferred-dss", "IA", &nwip_universe, 6 },
360 { "nearest-nwip-server", "IA", &nwip_universe, 7 },
361 { "autoretries", "B", &nwip_universe, 8 },
362 { "autoretry-secs", "B", &nwip_universe, 9 },
363 { "nwip-1-1", "f", &nwip_universe, 10 },
364 { "primary-dss", "I", &nwip_universe, 11 },
365 #ifndef SMALL
366 { "unknown-12", "X", &nwip_universe, 12 },
367 { "unknown-13", "X", &nwip_universe, 13 },
368 { "unknown-14", "X", &nwip_universe, 14 },
369 { "unknown-15", "X", &nwip_universe, 15 },
370 { "unknown-16", "X", &nwip_universe, 16 },
371 { "unknown-17", "X", &nwip_universe, 17 },
372 { "unknown-18", "X", &nwip_universe, 18 },
373 { "unknown-19", "X", &nwip_universe, 19 },
374 { "unknown-20", "X", &nwip_universe, 20 },
375 { "unknown-21", "X", &nwip_universe, 21 },
376 { "unknown-22", "X", &nwip_universe, 22 },
377 { "unknown-23", "X", &nwip_universe, 23 },
378 { "unknown-24", "X", &nwip_universe, 24 },
379 { "unknown-25", "X", &nwip_universe, 25 },
380 { "unknown-26", "X", &nwip_universe, 26 },
381 { "unknown-27", "X", &nwip_universe, 27 },
382 { "unknown-28", "X", &nwip_universe, 28 },
383 { "unknown-29", "X", &nwip_universe, 29 },
384 { "unknown-30", "X", &nwip_universe, 30 },
385 { "unknown-31", "X", &nwip_universe, 31 },
386 { "unknown-32", "X", &nwip_universe, 32 },
387 { "unknown-33", "X", &nwip_universe, 33 },
388 { "unknown-34", "X", &nwip_universe, 34 },
389 { "unknown-35", "X", &nwip_universe, 35 },
390 { "unknown-36", "X", &nwip_universe, 36 },
391 { "unknown-37", "X", &nwip_universe, 37 },
392 { "unknown-38", "X", &nwip_universe, 38 },
393 { "unknown-39", "X", &nwip_universe, 39 },
394 { "unknown-40", "X", &nwip_universe, 40 },
395 { "unknown-41", "X", &nwip_universe, 41 },
396 { "unknown-42", "X", &nwip_universe, 42 },
397 { "unknown-43", "X", &nwip_universe, 43 },
398 { "unknown-44", "X", &nwip_universe, 44 },
399 { "unknown-45", "X", &nwip_universe, 45 },
400 { "unknown-46", "X", &nwip_universe, 46 },
401 { "unknown-47", "X", &nwip_universe, 47 },
402 { "unknown-48", "X", &nwip_universe, 48 },
403 { "unknown-49", "X", &nwip_universe, 49 },
404 { "unknown-50", "X", &nwip_universe, 50 },
405 { "unknown-51", "X", &nwip_universe, 51 },
406 { "unknown-52", "X", &nwip_universe, 52 },
407 { "unknown-53", "X", &nwip_universe, 53 },
408 { "unknown-54", "X", &nwip_universe, 54 },
409 { "unknown-55", "X", &nwip_universe, 55 },
410 { "unknown-56", "X", &nwip_universe, 56 },
411 { "unknown-57", "X", &nwip_universe, 57 },
412 { "unknown-58", "X", &nwip_universe, 58 },
413 { "unknown-59", "X", &nwip_universe, 59 },
414 { "unknown-60", "X", &nwip_universe, 60 },
415 { "unknown-61", "X", &nwip_universe, 61 },
416 { "unknown-62", "X", &nwip_universe, 62 },
417 { "unknown-63", "X", &nwip_universe, 63 },
418 { "unknown-64", "X", &nwip_universe, 64 },
419 { "unknown-65", "X", &nwip_universe, 65 },
420 { "unknown-66", "X", &nwip_universe, 66 },
421 { "unknown-67", "X", &nwip_universe, 67 },
422 { "unknown-68", "X", &nwip_universe, 68 },
423 { "unknown-69", "X", &nwip_universe, 69 },
424 { "unknown-70", "X", &nwip_universe, 70 },
425 { "unknown-71", "X", &nwip_universe, 71 },
426 { "unknown-72", "X", &nwip_universe, 72 },
427 { "unknown-73", "X", &nwip_universe, 73 },
428 { "unknown-74", "X", &nwip_universe, 74 },
429 { "unknown-75", "X", &nwip_universe, 75 },
430 { "unknown-76", "X", &nwip_universe, 76 },
431 { "unknown-77", "X", &nwip_universe, 77 },
432 { "unknown-78", "X", &nwip_universe, 78 },
433 { "unknown-79", "X", &nwip_universe, 79 },
434 { "unknown-80", "X", &nwip_universe, 80 },
435 { "unknown-81", "X", &nwip_universe, 81 },
436 { "unknown-82", "X", &nwip_universe, 82 },
437 { "unknown-83", "X", &nwip_universe, 83 },
438 { "unknown-84", "X", &nwip_universe, 84 },
439 { "unknown-85", "X", &nwip_universe, 85 },
440 { "unknown-86", "X", &nwip_universe, 86 },
441 { "unknown-87", "X", &nwip_universe, 87 },
442 { "unknown-88", "X", &nwip_universe, 88 },
443 { "unknown-89", "X", &nwip_universe, 89 },
444 { "unknown-90", "X", &nwip_universe, 90 },
445 { "unknown-91", "X", &nwip_universe, 91 },
446 { "unknown-92", "X", &nwip_universe, 92 },
447 { "unknown-93", "X", &nwip_universe, 93 },
448 { "unknown-94", "X", &nwip_universe, 94 },
449 { "unknown-95", "X", &nwip_universe, 95 },
450 { "unknown-96", "X", &nwip_universe, 96 },
451 { "unknown-97", "X", &nwip_universe, 97 },
452 { "unknown-98", "X", &nwip_universe, 98 },
453 { "unknown-99", "X", &nwip_universe, 99 },
454 { "unknown-100", "X", &nwip_universe, 100 },
455 { "unknown-101", "X", &nwip_universe, 101 },
456 { "unknown-102", "X", &nwip_universe, 102 },
457 { "unknown-103", "X", &nwip_universe, 103 },
458 { "unknown-104", "X", &nwip_universe, 104 },
459 { "unknown-105", "X", &nwip_universe, 105 },
460 { "unknown-106", "X", &nwip_universe, 106 },
461 { "unknown-107", "X", &nwip_universe, 107 },
462 { "unknown-108", "X", &nwip_universe, 108 },
463 { "unknown-109", "X", &nwip_universe, 109 },
464 { "unknown-110", "X", &nwip_universe, 110 },
465 { "unknown-111", "X", &nwip_universe, 111 },
466 { "unknown-112", "X", &nwip_universe, 112 },
467 { "unknown-113", "X", &nwip_universe, 113 },
468 { "unknown-114", "X", &nwip_universe, 114 },
469 { "unknown-115", "X", &nwip_universe, 115 },
470 { "unknown-116", "X", &nwip_universe, 116 },
471 { "unknown-117", "X", &nwip_universe, 117 },
472 { "unknown-118", "X", &nwip_universe, 118 },
473 { "unknown-119", "X", &nwip_universe, 119 },
474 { "unknown-120", "X", &nwip_universe, 120 },
475 { "unknown-121", "X", &nwip_universe, 121 },
476 { "unknown-122", "X", &nwip_universe, 122 },
477 { "unknown-123", "X", &nwip_universe, 123 },
478 { "unknown-124", "X", &nwip_universe, 124 },
479 { "unknown-125", "X", &nwip_universe, 125 },
480 { "unknown-126", "X", &nwip_universe, 126 },
481 { "unknown-127", "X", &nwip_universe, 127 },
482 { "unknown-128", "X", &nwip_universe, 128 },
483 { "unknown-129", "X", &nwip_universe, 129 },
484 { "unknown-130", "X", &nwip_universe, 130 },
485 { "unknown-131", "X", &nwip_universe, 131 },
486 { "unknown-132", "X", &nwip_universe, 132 },
487 { "unknown-133", "X", &nwip_universe, 133 },
488 { "unknown-134", "X", &nwip_universe, 134 },
489 { "unknown-135", "X", &nwip_universe, 135 },
490 { "unknown-136", "X", &nwip_universe, 136 },
491 { "unknown-137", "X", &nwip_universe, 137 },
492 { "unknown-138", "X", &nwip_universe, 138 },
493 { "unknown-139", "X", &nwip_universe, 139 },
494 { "unknown-140", "X", &nwip_universe, 140 },
495 { "unknown-141", "X", &nwip_universe, 141 },
496 { "unknown-142", "X", &nwip_universe, 142 },
497 { "unknown-143", "X", &nwip_universe, 143 },
498 { "unknown-144", "X", &nwip_universe, 144 },
499 { "unknown-145", "X", &nwip_universe, 145 },
500 { "unknown-146", "X", &nwip_universe, 146 },
501 { "unknown-147", "X", &nwip_universe, 147 },
502 { "unknown-148", "X", &nwip_universe, 148 },
503 { "unknown-149", "X", &nwip_universe, 149 },
504 { "unknown-150", "X", &nwip_universe, 150 },
505 { "unknown-151", "X", &nwip_universe, 151 },
506 { "unknown-152", "X", &nwip_universe, 152 },
507 { "unknown-153", "X", &nwip_universe, 153 },
508 { "unknown-154", "X", &nwip_universe, 154 },
509 { "unknown-155", "X", &nwip_universe, 155 },
510 { "unknown-156", "X", &nwip_universe, 156 },
511 { "unknown-157", "X", &nwip_universe, 157 },
512 { "unknown-158", "X", &nwip_universe, 158 },
513 { "unknown-159", "X", &nwip_universe, 159 },
514 { "unknown-160", "X", &nwip_universe, 160 },
515 { "unknown-161", "X", &nwip_universe, 161 },
516 { "unknown-162", "X", &nwip_universe, 162 },
517 { "unknown-163", "X", &nwip_universe, 163 },
518 { "unknown-164", "X", &nwip_universe, 164 },
519 { "unknown-165", "X", &nwip_universe, 165 },
520 { "unknown-166", "X", &nwip_universe, 166 },
521 { "unknown-167", "X", &nwip_universe, 167 },
522 { "unknown-168", "X", &nwip_universe, 168 },
523 { "unknown-169", "X", &nwip_universe, 169 },
524 { "unknown-170", "X", &nwip_universe, 170 },
525 { "unknown-171", "X", &nwip_universe, 171 },
526 { "unknown-172", "X", &nwip_universe, 172 },
527 { "unknown-173", "X", &nwip_universe, 173 },
528 { "unknown-174", "X", &nwip_universe, 174 },
529 { "unknown-175", "X", &nwip_universe, 175 },
530 { "unknown-176", "X", &nwip_universe, 176 },
531 { "unknown-177", "X", &nwip_universe, 177 },
532 { "unknown-178", "X", &nwip_universe, 178 },
533 { "unknown-179", "X", &nwip_universe, 179 },
534 { "unknown-180", "X", &nwip_universe, 180 },
535 { "unknown-181", "X", &nwip_universe, 181 },
536 { "unknown-182", "X", &nwip_universe, 182 },
537 { "unknown-183", "X", &nwip_universe, 183 },
538 { "unknown-184", "X", &nwip_universe, 184 },
539 { "unknown-185", "X", &nwip_universe, 185 },
540 { "unknown-186", "X", &nwip_universe, 186 },
541 { "unknown-187", "X", &nwip_universe, 187 },
542 { "unknown-188", "X", &nwip_universe, 188 },
543 { "unknown-189", "X", &nwip_universe, 189 },
544 { "unknown-190", "X", &nwip_universe, 190 },
545 { "unknown-191", "X", &nwip_universe, 191 },
546 { "unknown-192", "X", &nwip_universe, 192 },
547 { "unknown-193", "X", &nwip_universe, 193 },
548 { "unknown-194", "X", &nwip_universe, 194 },
549 { "unknown-195", "X", &nwip_universe, 195 },
550 { "unknown-196", "X", &nwip_universe, 196 },
551 { "unknown-197", "X", &nwip_universe, 197 },
552 { "unknown-198", "X", &nwip_universe, 198 },
553 { "unknown-199", "X", &nwip_universe, 199 },
554 { "unknown-200", "X", &nwip_universe, 200 },
555 { "unknown-201", "X", &nwip_universe, 201 },
556 { "unknown-202", "X", &nwip_universe, 202 },
557 { "unknown-203", "X", &nwip_universe, 203 },
558 { "unknown-204", "X", &nwip_universe, 204 },
559 { "unknown-205", "X", &nwip_universe, 205 },
560 { "unknown-206", "X", &nwip_universe, 206 },
561 { "unknown-207", "X", &nwip_universe, 207 },
562 { "unknown-208", "X", &nwip_universe, 208 },
563 { "unknown-209", "X", &nwip_universe, 209 },
564 { "unknown-210", "X", &nwip_universe, 210 },
565 { "unknown-211", "X", &nwip_universe, 211 },
566 { "unknown-212", "X", &nwip_universe, 212 },
567 { "unknown-213", "X", &nwip_universe, 213 },
568 { "unknown-214", "X", &nwip_universe, 214 },
569 { "unknown-215", "X", &nwip_universe, 215 },
570 { "unknown-216", "X", &nwip_universe, 216 },
571 { "unknown-217", "X", &nwip_universe, 217 },
572 { "unknown-218", "X", &nwip_universe, 218 },
573 { "unknown-219", "X", &nwip_universe, 219 },
574 { "unknown-220", "X", &nwip_universe, 220 },
575 { "unknown-221", "X", &nwip_universe, 221 },
576 { "unknown-222", "X", &nwip_universe, 222 },
577 { "unknown-223", "X", &nwip_universe, 223 },
578 { "unknown-224", "X", &nwip_universe, 224 },
579 { "unknown-225", "X", &nwip_universe, 225 },
580 { "unknown-226", "X", &nwip_universe, 226 },
581 { "unknown-227", "X", &nwip_universe, 227 },
582 { "unknown-228", "X", &nwip_universe, 228 },
583 { "unknown-229", "X", &nwip_universe, 229 },
584 { "unknown-230", "X", &nwip_universe, 230 },
585 { "unknown-231", "X", &nwip_universe, 231 },
586 { "unknown-232", "X", &nwip_universe, 232 },
587 { "unknown-233", "X", &nwip_universe, 233 },
588 { "unknown-234", "X", &nwip_universe, 234 },
589 { "unknown-235", "X", &nwip_universe, 235 },
590 { "unknown-236", "X", &nwip_universe, 236 },
591 { "unknown-237", "X", &nwip_universe, 237 },
592 { "unknown-238", "X", &nwip_universe, 238 },
593 { "unknown-239", "X", &nwip_universe, 239 },
594 { "unknown-240", "X", &nwip_universe, 240 },
595 { "unknown-241", "X", &nwip_universe, 241 },
596 { "unknown-242", "X", &nwip_universe, 242 },
597 { "unknown-243", "X", &nwip_universe, 243 },
598 { "unknown-244", "X", &nwip_universe, 244 },
599 { "unknown-245", "X", &nwip_universe, 245 },
600 { "unknown-246", "X", &nwip_universe, 246 },
601 { "unknown-247", "X", &nwip_universe, 247 },
602 { "unknown-248", "X", &nwip_universe, 248 },
603 { "unknown-249", "X", &nwip_universe, 249 },
604 { "unknown-250", "X", &nwip_universe, 250 },
605 { "unknown-251", "X", &nwip_universe, 251 },
606 { "unknown-252", "X", &nwip_universe, 252 },
607 { "unknown-253", "X", &nwip_universe, 253 },
608 { "unknown-254", "X", &nwip_universe, 254 },
609 #endif
610 { "unknown-end", "e", &nwip_universe, 255 },
613 struct universe fqdn_universe;
614 struct option fqdn_options[] = {
615 { "pad", "", &fqdn_universe, 0 },
616 { "no-client-update", "f", &fqdn_universe, 1 },
617 { "server-update", "f", &fqdn_universe, 2 },
618 { "encoded", "f", &fqdn_universe, 3 },
619 { "rcode1", "B", &fqdn_universe, 4 },
620 { "rcode2", "B", &fqdn_universe, 5 },
621 { "hostname", "t", &fqdn_universe, 6 },
622 { "domainname", "t", &fqdn_universe, 7 },
623 { "fqdn", "t", &fqdn_universe, 8 },
624 #ifndef SMALL
625 { "unknown-9", "X", &fqdn_universe, 9 },
626 { "unknown-10", "X", &fqdn_universe, 10 },
627 { "unknown-11", "X", &fqdn_universe, 11 },
628 { "unknown-12", "X", &fqdn_universe, 12 },
629 { "unknown-13", "X", &fqdn_universe, 13 },
630 { "unknown-14", "X", &fqdn_universe, 14 },
631 { "unknown-15", "X", &fqdn_universe, 15 },
632 { "unknown-16", "X", &fqdn_universe, 16 },
633 { "unknown-17", "X", &fqdn_universe, 17 },
634 { "unknown-18", "X", &fqdn_universe, 18 },
635 { "unknown-19", "X", &fqdn_universe, 19 },
636 { "unknown-20", "X", &fqdn_universe, 20 },
637 { "unknown-21", "X", &fqdn_universe, 21 },
638 { "unknown-22", "X", &fqdn_universe, 22 },
639 { "unknown-23", "X", &fqdn_universe, 23 },
640 { "unknown-24", "X", &fqdn_universe, 24 },
641 { "unknown-25", "X", &fqdn_universe, 25 },
642 { "unknown-26", "X", &fqdn_universe, 26 },
643 { "unknown-27", "X", &fqdn_universe, 27 },
644 { "unknown-28", "X", &fqdn_universe, 28 },
645 { "unknown-29", "X", &fqdn_universe, 29 },
646 { "unknown-30", "X", &fqdn_universe, 30 },
647 { "unknown-31", "X", &fqdn_universe, 31 },
648 { "unknown-32", "X", &fqdn_universe, 32 },
649 { "unknown-33", "X", &fqdn_universe, 33 },
650 { "unknown-34", "X", &fqdn_universe, 34 },
651 { "unknown-35", "X", &fqdn_universe, 35 },
652 { "unknown-36", "X", &fqdn_universe, 36 },
653 { "unknown-37", "X", &fqdn_universe, 37 },
654 { "unknown-38", "X", &fqdn_universe, 38 },
655 { "unknown-39", "X", &fqdn_universe, 39 },
656 { "unknown-40", "X", &fqdn_universe, 40 },
657 { "unknown-41", "X", &fqdn_universe, 41 },
658 { "unknown-42", "X", &fqdn_universe, 42 },
659 { "unknown-43", "X", &fqdn_universe, 43 },
660 { "unknown-44", "X", &fqdn_universe, 44 },
661 { "unknown-45", "X", &fqdn_universe, 45 },
662 { "unknown-46", "X", &fqdn_universe, 46 },
663 { "unknown-47", "X", &fqdn_universe, 47 },
664 { "unknown-48", "X", &fqdn_universe, 48 },
665 { "unknown-49", "X", &fqdn_universe, 49 },
666 { "unknown-50", "X", &fqdn_universe, 50 },
667 { "unknown-51", "X", &fqdn_universe, 51 },
668 { "unknown-52", "X", &fqdn_universe, 52 },
669 { "unknown-53", "X", &fqdn_universe, 53 },
670 { "unknown-54", "X", &fqdn_universe, 54 },
671 { "unknown-55", "X", &fqdn_universe, 55 },
672 { "unknown-56", "X", &fqdn_universe, 56 },
673 { "unknown-57", "X", &fqdn_universe, 57 },
674 { "unknown-58", "X", &fqdn_universe, 58 },
675 { "unknown-59", "X", &fqdn_universe, 59 },
676 { "unknown-60", "X", &fqdn_universe, 60 },
677 { "unknown-61", "X", &fqdn_universe, 61 },
678 { "unknown-62", "X", &fqdn_universe, 62 },
679 { "unknown-63", "X", &fqdn_universe, 63 },
680 { "unknown-64", "X", &fqdn_universe, 64 },
681 { "unknown-65", "X", &fqdn_universe, 65 },
682 { "unknown-66", "X", &fqdn_universe, 66 },
683 { "unknown-67", "X", &fqdn_universe, 67 },
684 { "unknown-68", "X", &fqdn_universe, 68 },
685 { "unknown-69", "X", &fqdn_universe, 69 },
686 { "unknown-70", "X", &fqdn_universe, 70 },
687 { "unknown-71", "X", &fqdn_universe, 71 },
688 { "unknown-72", "X", &fqdn_universe, 72 },
689 { "unknown-73", "X", &fqdn_universe, 73 },
690 { "unknown-74", "X", &fqdn_universe, 74 },
691 { "unknown-75", "X", &fqdn_universe, 75 },
692 { "unknown-76", "X", &fqdn_universe, 76 },
693 { "unknown-77", "X", &fqdn_universe, 77 },
694 { "unknown-78", "X", &fqdn_universe, 78 },
695 { "unknown-79", "X", &fqdn_universe, 79 },
696 { "unknown-80", "X", &fqdn_universe, 80 },
697 { "unknown-81", "X", &fqdn_universe, 81 },
698 { "unknown-82", "X", &fqdn_universe, 82 },
699 { "unknown-83", "X", &fqdn_universe, 83 },
700 { "unknown-84", "X", &fqdn_universe, 84 },
701 { "unknown-85", "X", &fqdn_universe, 85 },
702 { "unknown-86", "X", &fqdn_universe, 86 },
703 { "unknown-87", "X", &fqdn_universe, 87 },
704 { "unknown-88", "X", &fqdn_universe, 88 },
705 { "unknown-89", "X", &fqdn_universe, 89 },
706 { "unknown-90", "X", &fqdn_universe, 90 },
707 { "unknown-91", "X", &fqdn_universe, 91 },
708 { "unknown-92", "X", &fqdn_universe, 92 },
709 { "unknown-93", "X", &fqdn_universe, 93 },
710 { "unknown-94", "X", &fqdn_universe, 94 },
711 { "unknown-95", "X", &fqdn_universe, 95 },
712 { "unknown-96", "X", &fqdn_universe, 96 },
713 { "unknown-97", "X", &fqdn_universe, 97 },
714 { "unknown-98", "X", &fqdn_universe, 98 },
715 { "unknown-99", "X", &fqdn_universe, 99 },
716 { "unknown-100", "X", &fqdn_universe, 100 },
717 { "unknown-101", "X", &fqdn_universe, 101 },
718 { "unknown-102", "X", &fqdn_universe, 102 },
719 { "unknown-103", "X", &fqdn_universe, 103 },
720 { "unknown-104", "X", &fqdn_universe, 104 },
721 { "unknown-105", "X", &fqdn_universe, 105 },
722 { "unknown-106", "X", &fqdn_universe, 106 },
723 { "unknown-107", "X", &fqdn_universe, 107 },
724 { "unknown-108", "X", &fqdn_universe, 108 },
725 { "unknown-109", "X", &fqdn_universe, 109 },
726 { "unknown-110", "X", &fqdn_universe, 110 },
727 { "unknown-111", "X", &fqdn_universe, 111 },
728 { "unknown-112", "X", &fqdn_universe, 112 },
729 { "unknown-113", "X", &fqdn_universe, 113 },
730 { "unknown-114", "X", &fqdn_universe, 114 },
731 { "unknown-115", "X", &fqdn_universe, 115 },
732 { "unknown-116", "X", &fqdn_universe, 116 },
733 { "unknown-117", "X", &fqdn_universe, 117 },
734 { "unknown-118", "X", &fqdn_universe, 118 },
735 { "unknown-119", "X", &fqdn_universe, 119 },
736 { "unknown-120", "X", &fqdn_universe, 120 },
737 { "unknown-121", "X", &fqdn_universe, 121 },
738 { "unknown-122", "X", &fqdn_universe, 122 },
739 { "unknown-123", "X", &fqdn_universe, 123 },
740 { "unknown-124", "X", &fqdn_universe, 124 },
741 { "unknown-125", "X", &fqdn_universe, 125 },
742 { "unknown-126", "X", &fqdn_universe, 126 },
743 { "unknown-127", "X", &fqdn_universe, 127 },
744 { "unknown-128", "X", &fqdn_universe, 128 },
745 { "unknown-129", "X", &fqdn_universe, 129 },
746 { "unknown-130", "X", &fqdn_universe, 130 },
747 { "unknown-131", "X", &fqdn_universe, 131 },
748 { "unknown-132", "X", &fqdn_universe, 132 },
749 { "unknown-133", "X", &fqdn_universe, 133 },
750 { "unknown-134", "X", &fqdn_universe, 134 },
751 { "unknown-135", "X", &fqdn_universe, 135 },
752 { "unknown-136", "X", &fqdn_universe, 136 },
753 { "unknown-137", "X", &fqdn_universe, 137 },
754 { "unknown-138", "X", &fqdn_universe, 138 },
755 { "unknown-139", "X", &fqdn_universe, 139 },
756 { "unknown-140", "X", &fqdn_universe, 140 },
757 { "unknown-141", "X", &fqdn_universe, 141 },
758 { "unknown-142", "X", &fqdn_universe, 142 },
759 { "unknown-143", "X", &fqdn_universe, 143 },
760 { "unknown-144", "X", &fqdn_universe, 144 },
761 { "unknown-145", "X", &fqdn_universe, 145 },
762 { "unknown-146", "X", &fqdn_universe, 146 },
763 { "unknown-147", "X", &fqdn_universe, 147 },
764 { "unknown-148", "X", &fqdn_universe, 148 },
765 { "unknown-149", "X", &fqdn_universe, 149 },
766 { "unknown-150", "X", &fqdn_universe, 150 },
767 { "unknown-151", "X", &fqdn_universe, 151 },
768 { "unknown-152", "X", &fqdn_universe, 152 },
769 { "unknown-153", "X", &fqdn_universe, 153 },
770 { "unknown-154", "X", &fqdn_universe, 154 },
771 { "unknown-155", "X", &fqdn_universe, 155 },
772 { "unknown-156", "X", &fqdn_universe, 156 },
773 { "unknown-157", "X", &fqdn_universe, 157 },
774 { "unknown-158", "X", &fqdn_universe, 158 },
775 { "unknown-159", "X", &fqdn_universe, 159 },
776 { "unknown-160", "X", &fqdn_universe, 160 },
777 { "unknown-161", "X", &fqdn_universe, 161 },
778 { "unknown-162", "X", &fqdn_universe, 162 },
779 { "unknown-163", "X", &fqdn_universe, 163 },
780 { "unknown-164", "X", &fqdn_universe, 164 },
781 { "unknown-165", "X", &fqdn_universe, 165 },
782 { "unknown-166", "X", &fqdn_universe, 166 },
783 { "unknown-167", "X", &fqdn_universe, 167 },
784 { "unknown-168", "X", &fqdn_universe, 168 },
785 { "unknown-169", "X", &fqdn_universe, 169 },
786 { "unknown-170", "X", &fqdn_universe, 170 },
787 { "unknown-171", "X", &fqdn_universe, 171 },
788 { "unknown-172", "X", &fqdn_universe, 172 },
789 { "unknown-173", "X", &fqdn_universe, 173 },
790 { "unknown-174", "X", &fqdn_universe, 174 },
791 { "unknown-175", "X", &fqdn_universe, 175 },
792 { "unknown-176", "X", &fqdn_universe, 176 },
793 { "unknown-177", "X", &fqdn_universe, 177 },
794 { "unknown-178", "X", &fqdn_universe, 178 },
795 { "unknown-179", "X", &fqdn_universe, 179 },
796 { "unknown-180", "X", &fqdn_universe, 180 },
797 { "unknown-181", "X", &fqdn_universe, 181 },
798 { "unknown-182", "X", &fqdn_universe, 182 },
799 { "unknown-183", "X", &fqdn_universe, 183 },
800 { "unknown-184", "X", &fqdn_universe, 184 },
801 { "unknown-185", "X", &fqdn_universe, 185 },
802 { "unknown-186", "X", &fqdn_universe, 186 },
803 { "unknown-187", "X", &fqdn_universe, 187 },
804 { "unknown-188", "X", &fqdn_universe, 188 },
805 { "unknown-189", "X", &fqdn_universe, 189 },
806 { "unknown-190", "X", &fqdn_universe, 190 },
807 { "unknown-191", "X", &fqdn_universe, 191 },
808 { "unknown-192", "X", &fqdn_universe, 192 },
809 { "unknown-193", "X", &fqdn_universe, 193 },
810 { "unknown-194", "X", &fqdn_universe, 194 },
811 { "unknown-195", "X", &fqdn_universe, 195 },
812 { "unknown-196", "X", &fqdn_universe, 196 },
813 { "unknown-197", "X", &fqdn_universe, 197 },
814 { "unknown-198", "X", &fqdn_universe, 198 },
815 { "unknown-199", "X", &fqdn_universe, 199 },
816 { "unknown-200", "X", &fqdn_universe, 200 },
817 { "unknown-201", "X", &fqdn_universe, 201 },
818 { "unknown-202", "X", &fqdn_universe, 202 },
819 { "unknown-203", "X", &fqdn_universe, 203 },
820 { "unknown-204", "X", &fqdn_universe, 204 },
821 { "unknown-205", "X", &fqdn_universe, 205 },
822 { "unknown-206", "X", &fqdn_universe, 206 },
823 { "unknown-207", "X", &fqdn_universe, 207 },
824 { "unknown-208", "X", &fqdn_universe, 208 },
825 { "unknown-209", "X", &fqdn_universe, 209 },
826 { "unknown-210", "X", &fqdn_universe, 210 },
827 { "unknown-211", "X", &fqdn_universe, 211 },
828 { "unknown-212", "X", &fqdn_universe, 212 },
829 { "unknown-213", "X", &fqdn_universe, 213 },
830 { "unknown-214", "X", &fqdn_universe, 214 },
831 { "unknown-215", "X", &fqdn_universe, 215 },
832 { "unknown-216", "X", &fqdn_universe, 216 },
833 { "unknown-217", "X", &fqdn_universe, 217 },
834 { "unknown-218", "X", &fqdn_universe, 218 },
835 { "unknown-219", "X", &fqdn_universe, 219 },
836 { "unknown-220", "X", &fqdn_universe, 220 },
837 { "unknown-221", "X", &fqdn_universe, 221 },
838 { "unknown-222", "X", &fqdn_universe, 222 },
839 { "unknown-223", "X", &fqdn_universe, 223 },
840 { "unknown-224", "X", &fqdn_universe, 224 },
841 { "unknown-225", "X", &fqdn_universe, 225 },
842 { "unknown-226", "X", &fqdn_universe, 226 },
843 { "unknown-227", "X", &fqdn_universe, 227 },
844 { "unknown-228", "X", &fqdn_universe, 228 },
845 { "unknown-229", "X", &fqdn_universe, 229 },
846 { "unknown-230", "X", &fqdn_universe, 230 },
847 { "unknown-231", "X", &fqdn_universe, 231 },
848 { "unknown-232", "X", &fqdn_universe, 232 },
849 { "unknown-233", "X", &fqdn_universe, 233 },
850 { "unknown-234", "X", &fqdn_universe, 234 },
851 { "unknown-235", "X", &fqdn_universe, 235 },
852 { "unknown-236", "X", &fqdn_universe, 236 },
853 { "unknown-237", "X", &fqdn_universe, 237 },
854 { "unknown-238", "X", &fqdn_universe, 238 },
855 { "unknown-239", "X", &fqdn_universe, 239 },
856 { "unknown-240", "X", &fqdn_universe, 240 },
857 { "unknown-241", "X", &fqdn_universe, 241 },
858 { "unknown-242", "X", &fqdn_universe, 242 },
859 { "unknown-243", "X", &fqdn_universe, 243 },
860 { "unknown-244", "X", &fqdn_universe, 244 },
861 { "unknown-245", "X", &fqdn_universe, 245 },
862 { "unknown-246", "X", &fqdn_universe, 246 },
863 { "unknown-247", "X", &fqdn_universe, 247 },
864 { "unknown-248", "X", &fqdn_universe, 248 },
865 { "unknown-249", "X", &fqdn_universe, 249 },
866 { "unknown-250", "X", &fqdn_universe, 250 },
867 { "unknown-251", "X", &fqdn_universe, 251 },
868 { "unknown-252", "X", &fqdn_universe, 252 },
869 { "unknown-253", "X", &fqdn_universe, 253 },
870 { "unknown-254", "X", &fqdn_universe, 254 },
871 #endif
872 { "unknown-end", "e", &fqdn_universe, 255 },
875 const char *hardware_types[] = {
876 "unknown-0",
877 "ethernet",
878 "unknown-2",
879 "unknown-3",
880 "unknown-4",
881 "unknown-5",
882 "token-ring",
883 "unknown-7",
884 "fddi",
885 #ifndef SMALL
886 "unknown-9",
887 "unknown-10",
888 "unknown-11",
889 "unknown-12",
890 "unknown-13",
891 "unknown-14",
892 "unknown-15",
893 "unknown-16",
894 "unknown-17",
895 "unknown-18",
896 "unknown-19",
897 "unknown-20",
898 "unknown-21",
899 "unknown-22",
900 "unknown-23",
901 "unknown-24",
902 "unknown-25",
903 "unknown-26",
904 "unknown-27",
905 "unknown-28",
906 "unknown-29",
907 "unknown-30",
908 "unknown-31",
909 "unknown-32",
910 "unknown-33",
911 "unknown-34",
912 "unknown-35",
913 "unknown-36",
914 "unknown-37",
915 "unknown-38",
916 "unknown-39",
917 "unknown-40",
918 "unknown-41",
919 "unknown-42",
920 "unknown-43",
921 "unknown-44",
922 "unknown-45",
923 "unknown-46",
924 "unknown-47",
925 "unknown-48",
926 "unknown-49",
927 "unknown-50",
928 "unknown-51",
929 "unknown-52",
930 "unknown-53",
931 "unknown-54",
932 "unknown-55",
933 "unknown-56",
934 "unknown-57",
935 "unknown-58",
936 "unknown-59",
937 "unknown-60",
938 "unknown-61",
939 "unknown-62",
940 "unknown-63",
941 "unknown-64",
942 "unknown-65",
943 "unknown-66",
944 "unknown-67",
945 "unknown-68",
946 "unknown-69",
947 "unknown-70",
948 "unknown-71",
949 "unknown-72",
950 "unknown-73",
951 "unknown-74",
952 "unknown-75",
953 "unknown-76",
954 "unknown-77",
955 "unknown-78",
956 "unknown-79",
957 "unknown-80",
958 "unknown-81",
959 "unknown-82",
960 "unknown-83",
961 "unknown-84",
962 "unknown-85",
963 "unknown-86",
964 "unknown-87",
965 "unknown-88",
966 "unknown-89",
967 "unknown-90",
968 "unknown-91",
969 "unknown-92",
970 "unknown-93",
971 "unknown-94",
972 "unknown-95",
973 "unknown-96",
974 "unknown-97",
975 "unknown-98",
976 "unknown-99",
977 "unknown-100",
978 "unknown-101",
979 "unknown-102",
980 "unknown-103",
981 "unknown-104",
982 "unknown-105",
983 "unknown-106",
984 "unknown-107",
985 "unknown-108",
986 "unknown-109",
987 "unknown-110",
988 "unknown-111",
989 "unknown-112",
990 "unknown-113",
991 "unknown-114",
992 "unknown-115",
993 "unknown-116",
994 "unknown-117",
995 "unknown-118",
996 "unknown-119",
997 "unknown-120",
998 "unknown-121",
999 "unknown-122",
1000 "unknown-123",
1001 "unknown-124",
1002 "unknown-125",
1003 "unknown-126",
1004 "unknown-127",
1005 "unknown-128",
1006 "unknown-129",
1007 "unknown-130",
1008 "unknown-131",
1009 "unknown-132",
1010 "unknown-133",
1011 "unknown-134",
1012 "unknown-135",
1013 "unknown-136",
1014 "unknown-137",
1015 "unknown-138",
1016 "unknown-139",
1017 "unknown-140",
1018 "unknown-141",
1019 "unknown-142",
1020 "unknown-143",
1021 "unknown-144",
1022 "unknown-145",
1023 "unknown-146",
1024 "unknown-147",
1025 "unknown-148",
1026 "unknown-149",
1027 "unknown-150",
1028 "unknown-151",
1029 "unknown-152",
1030 "unknown-153",
1031 "unknown-154",
1032 "unknown-155",
1033 "unknown-156",
1034 "unknown-157",
1035 "unknown-158",
1036 "unknown-159",
1037 "unknown-160",
1038 "unknown-161",
1039 "unknown-162",
1040 "unknown-163",
1041 "unknown-164",
1042 "unknown-165",
1043 "unknown-166",
1044 "unknown-167",
1045 "unknown-168",
1046 "unknown-169",
1047 "unknown-170",
1048 "unknown-171",
1049 "unknown-172",
1050 "unknown-173",
1051 "unknown-174",
1052 "unknown-175",
1053 "unknown-176",
1054 "unknown-177",
1055 "unknown-178",
1056 "unknown-179",
1057 "unknown-180",
1058 "unknown-181",
1059 "unknown-182",
1060 "unknown-183",
1061 "unknown-184",
1062 "unknown-185",
1063 "unknown-186",
1064 "unknown-187",
1065 "unknown-188",
1066 "unknown-189",
1067 "unknown-190",
1068 "unknown-191",
1069 "unknown-192",
1070 "unknown-193",
1071 "unknown-194",
1072 "unknown-195",
1073 "unknown-196",
1074 "unknown-197",
1075 "unknown-198",
1076 "unknown-199",
1077 "unknown-200",
1078 "unknown-201",
1079 "unknown-202",
1080 "unknown-203",
1081 "unknown-204",
1082 "unknown-205",
1083 "unknown-206",
1084 "unknown-207",
1085 "unknown-208",
1086 "unknown-209",
1087 "unknown-210",
1088 "unknown-211",
1089 "unknown-212",
1090 "unknown-213",
1091 "unknown-214",
1092 "unknown-215",
1093 "unknown-216",
1094 "unknown-217",
1095 "unknown-218",
1096 "unknown-219",
1097 "unknown-220",
1098 "unknown-221",
1099 "unknown-222",
1100 "unknown-223",
1101 "unknown-224",
1102 "unknown-225",
1103 "unknown-226",
1104 "unknown-227",
1105 "unknown-228",
1106 "unknown-229",
1107 "unknown-230",
1108 "unknown-231",
1109 "unknown-232",
1110 "unknown-233",
1111 "unknown-234",
1112 "unknown-235",
1113 "unknown-236",
1114 "unknown-237",
1115 "unknown-238",
1116 "unknown-239",
1117 "unknown-240",
1118 "unknown-241",
1119 "unknown-242",
1120 "unknown-243",
1121 "unknown-244",
1122 "unknown-245",
1123 "unknown-246",
1124 "unknown-247",
1125 "unknown-248",
1126 "unknown-249",
1127 "unknown-250",
1128 "unknown-251",
1129 "unknown-252",
1130 "unknown-253",
1131 "unknown-254",
1132 "unknown-255"
1133 #endif
1136 universe_hash_t *universe_hash;
1137 struct universe **universes;
1138 int universe_count, universe_max;
1140 /* Universe containing names of configuration options, which, rather than
1141 writing "option universe-name.option-name ...;", can be set by writing
1142 "option-name ...;". */
1144 struct universe *config_universe;
1146 void initialize_common_option_spaces()
1148 int i;
1150 universe_max = 10;
1151 universes = ((struct universe **)
1152 dmalloc (universe_max * sizeof (struct universe *), MDL));
1153 if (!universes)
1154 log_fatal ("Can't allocate option space table.");
1155 memset (universes, 0, universe_max * sizeof (struct universe *));
1157 /* Set up the DHCP option universe... */
1158 dhcp_universe.name = "dhcp";
1159 dhcp_universe.lookup_func = lookup_hashed_option;
1160 dhcp_universe.option_state_dereference =
1161 hashed_option_state_dereference;
1162 dhcp_universe.save_func = save_hashed_option;
1163 dhcp_universe.delete_func = delete_hashed_option;
1164 dhcp_universe.encapsulate = hashed_option_space_encapsulate;
1165 dhcp_universe.foreach = hashed_option_space_foreach;
1166 dhcp_universe.decode = parse_option_buffer;
1167 dhcp_universe.length_size = 1;
1168 dhcp_universe.tag_size = 1;
1169 dhcp_universe.store_tag = putUChar;
1170 dhcp_universe.store_length = putUChar;
1171 dhcp_universe.index = universe_count++;
1172 universes [dhcp_universe.index] = &dhcp_universe;
1173 if (!option_new_hash (&dhcp_universe.hash, 1, MDL))
1174 log_fatal ("Can't allocate dhcp option hash table.");
1175 for (i = 0; i < 256; i++) {
1176 dhcp_universe.options [i] = &dhcp_options [i];
1177 option_hash_add (dhcp_universe.hash,
1178 dhcp_options [i].name, 0,
1179 &dhcp_options [i], MDL);
1182 /* Set up the Novell option universe (for option 63)... */
1183 nwip_universe.name = "nwip";
1184 nwip_universe.lookup_func = lookup_linked_option;
1185 nwip_universe.option_state_dereference =
1186 linked_option_state_dereference;
1187 nwip_universe.save_func = save_linked_option;
1188 nwip_universe.delete_func = delete_linked_option;
1189 nwip_universe.encapsulate = nwip_option_space_encapsulate;
1190 nwip_universe.foreach = linked_option_space_foreach;
1191 nwip_universe.decode = parse_option_buffer;
1192 nwip_universe.length_size = 1;
1193 nwip_universe.tag_size = 1;
1194 nwip_universe.store_tag = putUChar;
1195 nwip_universe.store_length = putUChar;
1196 nwip_universe.enc_opt = &dhcp_options [DHO_NWIP_SUBOPTIONS];
1197 nwip_universe.index = universe_count++;
1198 universes [nwip_universe.index] = &nwip_universe;
1199 option_new_hash (&nwip_universe.hash, 1, MDL);
1200 if (!nwip_universe.hash)
1201 log_fatal ("Can't allocate nwip option hash table.");
1202 for (i = 0; i < __arraycount(nwip_options); i++) {
1203 if (!nwip_options[i].name) break;
1204 nwip_universe.options [i] = &nwip_options [i];
1205 option_hash_add (nwip_universe.hash,
1206 nwip_options [i].name, 0,
1207 &nwip_options [i], MDL);
1210 /* Set up the FQDN option universe... */
1211 fqdn_universe.name = "fqdn";
1212 fqdn_universe.lookup_func = lookup_linked_option;
1213 fqdn_universe.option_state_dereference =
1214 linked_option_state_dereference;
1215 fqdn_universe.save_func = save_linked_option;
1216 fqdn_universe.delete_func = delete_linked_option;
1217 fqdn_universe.encapsulate = fqdn_option_space_encapsulate;
1218 fqdn_universe.foreach = linked_option_space_foreach;
1219 fqdn_universe.decode = fqdn_universe_decode;
1220 fqdn_universe.length_size = 1;
1221 fqdn_universe.tag_size = 1;
1222 fqdn_universe.store_tag = putUChar;
1223 fqdn_universe.store_length = putUChar;
1224 fqdn_universe.index = universe_count++;
1225 fqdn_universe.enc_opt = &dhcp_options [DHO_FQDN];
1226 universes [fqdn_universe.index] = &fqdn_universe;
1227 option_new_hash (&fqdn_universe.hash, 1, MDL);
1228 if (!fqdn_universe.hash)
1229 log_fatal ("Can't allocate fqdn option hash table.");
1230 for (i = 0; i < __arraycount(fqdn_options); i++) {
1231 if (!fqdn_options[i].name) break;
1232 fqdn_universe.options [i] = &fqdn_options [i];
1233 option_hash_add (fqdn_universe.hash,
1234 fqdn_options [i].name, 0,
1235 &fqdn_options [i], MDL);
1238 /* Set up the hash of universes. */
1239 universe_new_hash (&universe_hash, 1, MDL);
1240 universe_hash_add (universe_hash,
1241 dhcp_universe.name, 0,
1242 &dhcp_universe, MDL);
1243 universe_hash_add (universe_hash,
1244 nwip_universe.name, 0,
1245 &nwip_universe, MDL);
1246 universe_hash_add (universe_hash,
1247 fqdn_universe.name, 0,
1248 &fqdn_universe, MDL);