ReactOS  0.4.12-dev-51-ge94618b
tables.c
Go to the documentation of this file.
1 /* tables.c
2 
3  Tables of information... */
4 
5 /*
6  * Copyright (c) 1995, 1996 The Internet Software Consortium.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in the
17  * documentation and/or other materials provided with the distribution.
18  * 3. Neither the name of The Internet Software Consortium nor the names
19  * of its contributors may be used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
23  * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
24  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE INTERNET SOFTWARE CONSORTIUM OR
27  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
30  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
33  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34  * SUCH DAMAGE.
35  *
36  * This software has been written for the Internet Software Consortium
37  * by Ted Lemon <mellon@fugue.com> in cooperation with Vixie
38  * Enterprises. To learn more about the Internet Software Consortium,
39  * see ``http://www.vix.com/isc''. To learn more about Vixie
40  * Enterprises, see ``http://www.vix.com''.
41  */
42 #define lint
43 #ifndef lint
44 static char copyright[] =
45 "$Id: tables.c,v 1.13.2.4 1999/04/24 16:46:44 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
46 #endif /* not lint */
47 
48 #include <rosdhcp.h>
49 
50 /* DHCP Option names, formats and codes, from RFC1533.
51 
52  Format codes:
53 
54  e - end of data
55  I - IP address
56  l - 32-bit signed integer
57  L - 32-bit unsigned integer
58  s - 16-bit signed integer
59  S - 16-bit unsigned integer
60  b - 8-bit signed integer
61  B - 8-bit unsigned integer
62  t - ASCII text
63  f - flag (true or false)
64  A - array of whatever precedes (e.g., IA means array of IP addresses)
65 */
66 
68 struct dhcp_option dhcp_options [256] = {
69  { "pad", "", &dhcp_universe, 0 },
70  { "subnet-mask", "I", &dhcp_universe, 1 },
71  { "time-offset", "l", &dhcp_universe, 2 },
72  { "routers", "IA", &dhcp_universe, 3 },
73  { "time-servers", "IA", &dhcp_universe, 4 },
74  { "ien116-name-servers", "IA", &dhcp_universe, 5 },
75  { "domain-name-servers", "IA", &dhcp_universe, 6 },
76  { "log-servers", "IA", &dhcp_universe, 7 },
77  { "cookie-servers", "IA", &dhcp_universe, 8 },
78  { "lpr-servers", "IA", &dhcp_universe, 9 },
79  { "impress-servers", "IA", &dhcp_universe, 10 },
80  { "resource-location-servers", "IA", &dhcp_universe, 11 },
81  { "host-name", "X", &dhcp_universe, 12 },
82  { "boot-size", "S", &dhcp_universe, 13 },
83  { "merit-dump", "t", &dhcp_universe, 14 },
84  { "domain-name", "t", &dhcp_universe, 15 },
85  { "swap-server", "I", &dhcp_universe, 16 },
86  { "root-path", "t", &dhcp_universe, 17 },
87  { "extensions-path", "t", &dhcp_universe, 18 },
88  { "ip-forwarding", "f", &dhcp_universe, 19 },
89  { "non-local-source-routing", "f", &dhcp_universe, 20 },
90  { "policy-filter", "IIA", &dhcp_universe, 21 },
91  { "max-dgram-reassembly", "S", &dhcp_universe, 22 },
92  { "default-ip-ttl", "B", &dhcp_universe, 23 },
93  { "path-mtu-aging-timeout", "L", &dhcp_universe, 24 },
94  { "path-mtu-plateau-table", "SA", &dhcp_universe, 25 },
95  { "interface-mtu", "S", &dhcp_universe, 26 },
96  { "all-subnets-local", "f", &dhcp_universe, 27 },
97  { "broadcast-address", "I", &dhcp_universe, 28 },
98  { "perform-mask-discovery", "f", &dhcp_universe, 29 },
99  { "mask-supplier", "f", &dhcp_universe, 30 },
100  { "router-discovery", "f", &dhcp_universe, 31 },
101  { "router-solicitation-address", "I", &dhcp_universe, 32 },
102  { "static-routes", "IIA", &dhcp_universe, 33 },
103  { "trailer-encapsulation", "f", &dhcp_universe, 34 },
104  { "arp-cache-timeout", "L", &dhcp_universe, 35 },
105  { "ieee802-3-encapsulation", "f", &dhcp_universe, 36 },
106  { "default-tcp-ttl", "B", &dhcp_universe, 37 },
107  { "tcp-keepalive-interval", "L", &dhcp_universe, 38 },
108  { "tcp-keepalive-garbage", "f", &dhcp_universe, 39 },
109  { "nis-domain", "t", &dhcp_universe, 40 },
110  { "nis-servers", "IA", &dhcp_universe, 41 },
111  { "ntp-servers", "IA", &dhcp_universe, 42 },
112  { "vendor-encapsulated-options", "X", &dhcp_universe, 43 },
113  { "netbios-name-servers", "IA", &dhcp_universe, 44 },
114  { "netbios-dd-server", "IA", &dhcp_universe, 45 },
115  { "netbios-node-type", "B", &dhcp_universe, 46 },
116  { "netbios-scope", "t", &dhcp_universe, 47 },
117  { "font-servers", "IA", &dhcp_universe, 48 },
118  { "x-display-manager", "IA", &dhcp_universe, 49 },
119  { "dhcp-requested-address", "I", &dhcp_universe, 50 },
120  { "dhcp-lease-time", "L", &dhcp_universe, 51 },
121  { "dhcp-option-overload", "B", &dhcp_universe, 52 },
122  { "dhcp-message-type", "B", &dhcp_universe, 53 },
123  { "dhcp-server-identifier", "I", &dhcp_universe, 54 },
124  { "dhcp-parameter-request-list", "BA", &dhcp_universe, 55 },
125  { "dhcp-message", "t", &dhcp_universe, 56 },
126  { "dhcp-max-message-size", "S", &dhcp_universe, 57 },
127  { "dhcp-renewal-time", "L", &dhcp_universe, 58 },
128  { "dhcp-rebinding-time", "L", &dhcp_universe, 59 },
129  { "dhcp-class-identifier", "t", &dhcp_universe, 60 },
130  { "dhcp-client-identifier", "X", &dhcp_universe, 61 },
131  { "option-62", "X", &dhcp_universe, 62 },
132  { "option-63", "X", &dhcp_universe, 63 },
133  { "nisplus-domain", "t", &dhcp_universe, 64 },
134  { "nisplus-servers", "IA", &dhcp_universe, 65 },
135  { "tftp-server-name", "t", &dhcp_universe, 66 },
136  { "bootfile-name", "t", &dhcp_universe, 67 },
137  { "mobile-ip-home-agent", "IA", &dhcp_universe, 68 },
138  { "smtp-server", "IA", &dhcp_universe, 69 },
139  { "pop-server", "IA", &dhcp_universe, 70 },
140  { "nntp-server", "IA", &dhcp_universe, 71 },
141  { "www-server", "IA", &dhcp_universe, 72 },
142  { "finger-server", "IA", &dhcp_universe, 73 },
143  { "irc-server", "IA", &dhcp_universe, 74 },
144  { "streettalk-server", "IA", &dhcp_universe, 75 },
145  { "streettalk-directory-assistance-server", "IA", &dhcp_universe, 76 },
146  { "user-class", "t", &dhcp_universe, 77 },
147  { "option-78", "X", &dhcp_universe, 78 },
148  { "option-79", "X", &dhcp_universe, 79 },
149  { "option-80", "X", &dhcp_universe, 80 },
150  { "option-81", "X", &dhcp_universe, 81 },
151  { "option-82", "X", &dhcp_universe, 82 },
152  { "option-83", "X", &dhcp_universe, 83 },
153  { "option-84", "X", &dhcp_universe, 84 },
154  { "nds-servers", "IA", &dhcp_universe, 85 },
155  { "nds-tree-name", "X", &dhcp_universe, 86 },
156  { "nds-context", "X", &dhcp_universe, 87 },
157  { "option-88", "X", &dhcp_universe, 88 },
158  { "option-89", "X", &dhcp_universe, 89 },
159  { "option-90", "X", &dhcp_universe, 90 },
160  { "option-91", "X", &dhcp_universe, 91 },
161  { "option-92", "X", &dhcp_universe, 92 },
162  { "option-93", "X", &dhcp_universe, 93 },
163  { "option-94", "X", &dhcp_universe, 94 },
164  { "option-95", "X", &dhcp_universe, 95 },
165  { "option-96", "X", &dhcp_universe, 96 },
166  { "option-97", "X", &dhcp_universe, 97 },
167  { "option-98", "X", &dhcp_universe, 98 },
168  { "option-99", "X", &dhcp_universe, 99 },
169  { "option-100", "X", &dhcp_universe, 100 },
170  { "option-101", "X", &dhcp_universe, 101 },
171  { "option-102", "X", &dhcp_universe, 102 },
172  { "option-103", "X", &dhcp_universe, 103 },
173  { "option-104", "X", &dhcp_universe, 104 },
174  { "option-105", "X", &dhcp_universe, 105 },
175  { "option-106", "X", &dhcp_universe, 106 },
176  { "option-107", "X", &dhcp_universe, 107 },
177  { "option-108", "X", &dhcp_universe, 108 },
178  { "option-109", "X", &dhcp_universe, 109 },
179  { "option-110", "X", &dhcp_universe, 110 },
180  { "option-111", "X", &dhcp_universe, 111 },
181  { "option-112", "X", &dhcp_universe, 112 },
182  { "option-113", "X", &dhcp_universe, 113 },
183  { "option-114", "X", &dhcp_universe, 114 },
184  { "option-115", "X", &dhcp_universe, 115 },
185  { "option-116", "X", &dhcp_universe, 116 },
186  { "option-117", "X", &dhcp_universe, 117 },
187  { "option-118", "X", &dhcp_universe, 118 },
188  { "option-119", "X", &dhcp_universe, 119 },
189  { "option-120", "X", &dhcp_universe, 120 },
190  { "option-121", "X", &dhcp_universe, 121 },
191  { "option-122", "X", &dhcp_universe, 122 },
192  { "option-123", "X", &dhcp_universe, 123 },
193  { "option-124", "X", &dhcp_universe, 124 },
194  { "option-125", "X", &dhcp_universe, 125 },
195  { "option-126", "X", &dhcp_universe, 126 },
196  { "option-127", "X", &dhcp_universe, 127 },
197  { "option-128", "X", &dhcp_universe, 128 },
198  { "option-129", "X", &dhcp_universe, 129 },
199  { "option-130", "X", &dhcp_universe, 130 },
200  { "option-131", "X", &dhcp_universe, 131 },
201  { "option-132", "X", &dhcp_universe, 132 },
202  { "option-133", "X", &dhcp_universe, 133 },
203  { "option-134", "X", &dhcp_universe, 134 },
204  { "option-135", "X", &dhcp_universe, 135 },
205  { "option-136", "X", &dhcp_universe, 136 },
206  { "option-137", "X", &dhcp_universe, 137 },
207  { "option-138", "X", &dhcp_universe, 138 },
208  { "option-139", "X", &dhcp_universe, 139 },
209  { "option-140", "X", &dhcp_universe, 140 },
210  { "option-141", "X", &dhcp_universe, 141 },
211  { "option-142", "X", &dhcp_universe, 142 },
212  { "option-143", "X", &dhcp_universe, 143 },
213  { "option-144", "X", &dhcp_universe, 144 },
214  { "option-145", "X", &dhcp_universe, 145 },
215  { "option-146", "X", &dhcp_universe, 146 },
216  { "option-147", "X", &dhcp_universe, 147 },
217  { "option-148", "X", &dhcp_universe, 148 },
218  { "option-149", "X", &dhcp_universe, 149 },
219  { "option-150", "X", &dhcp_universe, 150 },
220  { "option-151", "X", &dhcp_universe, 151 },
221  { "option-152", "X", &dhcp_universe, 152 },
222  { "option-153", "X", &dhcp_universe, 153 },
223  { "option-154", "X", &dhcp_universe, 154 },
224  { "option-155", "X", &dhcp_universe, 155 },
225  { "option-156", "X", &dhcp_universe, 156 },
226  { "option-157", "X", &dhcp_universe, 157 },
227  { "option-158", "X", &dhcp_universe, 158 },
228  { "option-159", "X", &dhcp_universe, 159 },
229  { "option-160", "X", &dhcp_universe, 160 },
230  { "option-161", "X", &dhcp_universe, 161 },
231  { "option-162", "X", &dhcp_universe, 162 },
232  { "option-163", "X", &dhcp_universe, 163 },
233  { "option-164", "X", &dhcp_universe, 164 },
234  { "option-165", "X", &dhcp_universe, 165 },
235  { "option-166", "X", &dhcp_universe, 166 },
236  { "option-167", "X", &dhcp_universe, 167 },
237  { "option-168", "X", &dhcp_universe, 168 },
238  { "option-169", "X", &dhcp_universe, 169 },
239  { "option-170", "X", &dhcp_universe, 170 },
240  { "option-171", "X", &dhcp_universe, 171 },
241  { "option-172", "X", &dhcp_universe, 172 },
242  { "option-173", "X", &dhcp_universe, 173 },
243  { "option-174", "X", &dhcp_universe, 174 },
244  { "option-175", "X", &dhcp_universe, 175 },
245  { "option-176", "X", &dhcp_universe, 176 },
246  { "option-177", "X", &dhcp_universe, 177 },
247  { "option-178", "X", &dhcp_universe, 178 },
248  { "option-179", "X", &dhcp_universe, 179 },
249  { "option-180", "X", &dhcp_universe, 180 },
250  { "option-181", "X", &dhcp_universe, 181 },
251  { "option-182", "X", &dhcp_universe, 182 },
252  { "option-183", "X", &dhcp_universe, 183 },
253  { "option-184", "X", &dhcp_universe, 184 },
254  { "option-185", "X", &dhcp_universe, 185 },
255  { "option-186", "X", &dhcp_universe, 186 },
256  { "option-187", "X", &dhcp_universe, 187 },
257  { "option-188", "X", &dhcp_universe, 188 },
258  { "option-189", "X", &dhcp_universe, 189 },
259  { "option-190", "X", &dhcp_universe, 190 },
260  { "option-191", "X", &dhcp_universe, 191 },
261  { "option-192", "X", &dhcp_universe, 192 },
262  { "option-193", "X", &dhcp_universe, 193 },
263  { "option-194", "X", &dhcp_universe, 194 },
264  { "option-195", "X", &dhcp_universe, 195 },
265  { "option-196", "X", &dhcp_universe, 196 },
266  { "option-197", "X", &dhcp_universe, 197 },
267  { "option-198", "X", &dhcp_universe, 198 },
268  { "option-199", "X", &dhcp_universe, 199 },
269  { "option-200", "X", &dhcp_universe, 200 },
270  { "option-201", "X", &dhcp_universe, 201 },
271  { "option-202", "X", &dhcp_universe, 202 },
272  { "option-203", "X", &dhcp_universe, 203 },
273  { "option-204", "X", &dhcp_universe, 204 },
274  { "option-205", "X", &dhcp_universe, 205 },
275  { "option-206", "X", &dhcp_universe, 206 },
276  { "option-207", "X", &dhcp_universe, 207 },
277  { "option-208", "X", &dhcp_universe, 208 },
278  { "option-209", "X", &dhcp_universe, 209 },
279  { "option-210", "X", &dhcp_universe, 210 },
280  { "option-211", "X", &dhcp_universe, 211 },
281  { "option-212", "X", &dhcp_universe, 212 },
282  { "option-213", "X", &dhcp_universe, 213 },
283  { "option-214", "X", &dhcp_universe, 214 },
284  { "option-215", "X", &dhcp_universe, 215 },
285  { "option-216", "X", &dhcp_universe, 216 },
286  { "option-217", "X", &dhcp_universe, 217 },
287  { "option-218", "X", &dhcp_universe, 218 },
288  { "option-219", "X", &dhcp_universe, 219 },
289  { "option-220", "X", &dhcp_universe, 220 },
290  { "option-221", "X", &dhcp_universe, 221 },
291  { "option-222", "X", &dhcp_universe, 222 },
292  { "option-223", "X", &dhcp_universe, 223 },
293  { "option-224", "X", &dhcp_universe, 224 },
294  { "option-225", "X", &dhcp_universe, 225 },
295  { "option-226", "X", &dhcp_universe, 226 },
296  { "option-227", "X", &dhcp_universe, 227 },
297  { "option-228", "X", &dhcp_universe, 228 },
298  { "option-229", "X", &dhcp_universe, 229 },
299  { "option-230", "X", &dhcp_universe, 230 },
300  { "option-231", "X", &dhcp_universe, 231 },
301  { "option-232", "X", &dhcp_universe, 232 },
302  { "option-233", "X", &dhcp_universe, 233 },
303  { "option-234", "X", &dhcp_universe, 234 },
304  { "option-235", "X", &dhcp_universe, 235 },
305  { "option-236", "X", &dhcp_universe, 236 },
306  { "option-237", "X", &dhcp_universe, 237 },
307  { "option-238", "X", &dhcp_universe, 238 },
308  { "option-239", "X", &dhcp_universe, 239 },
309  { "option-240", "X", &dhcp_universe, 240 },
310  { "option-241", "X", &dhcp_universe, 241 },
311  { "option-242", "X", &dhcp_universe, 242 },
312  { "option-243", "X", &dhcp_universe, 243 },
313  { "option-244", "X", &dhcp_universe, 244 },
314  { "option-245", "X", &dhcp_universe, 245 },
315  { "option-246", "X", &dhcp_universe, 246 },
316  { "option-247", "X", &dhcp_universe, 247 },
317  { "option-248", "X", &dhcp_universe, 248 },
318  { "option-249", "X", &dhcp_universe, 249 },
319  { "option-250", "X", &dhcp_universe, 250 },
320  { "option-251", "X", &dhcp_universe, 251 },
321  { "option-252", "X", &dhcp_universe, 252 },
322  { "option-253", "X", &dhcp_universe, 253 },
323  { "option-254", "X", &dhcp_universe, 254 },
324  { "option-end", "e", &dhcp_universe, 255 },
325 };
326 
327 /* Default dhcp option priority list (this is ad hoc and should not be
328  mistaken for a carefully crafted and optimized list). */
339  DHO_ROUTERS,
388 
389  /* Presently-undefined options... */
390  62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
391  78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
392  93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
393  107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
394  119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
395  131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
396  143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
397  155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
398  167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
399  179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
400  191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
401  203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
402  215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
403  227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
404  239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
405  251, 252, 253, 254,
406 };
407 
410 
411 
412 char *hardware_types [] = {
413  "unknown-0",
414  "ethernet",
415  "unknown-2",
416  "unknown-3",
417  "unknown-4",
418  "unknown-5",
419  "token-ring",
420  "unknown-7",
421  "fddi",
422  "unknown-9",
423  "unknown-10",
424  "unknown-11",
425  "unknown-12",
426  "unknown-13",
427  "unknown-14",
428  "unknown-15",
429  "unknown-16",
430  "unknown-17",
431  "unknown-18",
432  "unknown-19",
433  "unknown-20",
434  "unknown-21",
435  "unknown-22",
436  "unknown-23",
437  "unknown-24",
438  "unknown-25",
439  "unknown-26",
440  "unknown-27",
441  "unknown-28",
442  "unknown-29",
443  "unknown-30",
444  "unknown-31",
445  "unknown-32",
446  "unknown-33",
447  "unknown-34",
448  "unknown-35",
449  "unknown-36",
450  "unknown-37",
451  "unknown-38",
452  "unknown-39",
453  "unknown-40",
454  "unknown-41",
455  "unknown-42",
456  "unknown-43",
457  "unknown-44",
458  "unknown-45",
459  "unknown-46",
460  "unknown-47",
461  "unknown-48",
462  "unknown-49",
463  "unknown-50",
464  "unknown-51",
465  "unknown-52",
466  "unknown-53",
467  "unknown-54",
468  "unknown-55",
469  "unknown-56",
470  "unknown-57",
471  "unknown-58",
472  "unknown-59",
473  "unknown-60",
474  "unknown-61",
475  "unknown-62",
476  "unknown-63",
477  "unknown-64",
478  "unknown-65",
479  "unknown-66",
480  "unknown-67",
481  "unknown-68",
482  "unknown-69",
483  "unknown-70",
484  "unknown-71",
485  "unknown-72",
486  "unknown-73",
487  "unknown-74",
488  "unknown-75",
489  "unknown-76",
490  "unknown-77",
491  "unknown-78",
492  "unknown-79",
493  "unknown-80",
494  "unknown-81",
495  "unknown-82",
496  "unknown-83",
497  "unknown-84",
498  "unknown-85",
499  "unknown-86",
500  "unknown-87",
501  "unknown-88",
502  "unknown-89",
503  "unknown-90",
504  "unknown-91",
505  "unknown-92",
506  "unknown-93",
507  "unknown-94",
508  "unknown-95",
509  "unknown-96",
510  "unknown-97",
511  "unknown-98",
512  "unknown-99",
513  "unknown-100",
514  "unknown-101",
515  "unknown-102",
516  "unknown-103",
517  "unknown-104",
518  "unknown-105",
519  "unknown-106",
520  "unknown-107",
521  "unknown-108",
522  "unknown-109",
523  "unknown-110",
524  "unknown-111",
525  "unknown-112",
526  "unknown-113",
527  "unknown-114",
528  "unknown-115",
529  "unknown-116",
530  "unknown-117",
531  "unknown-118",
532  "unknown-119",
533  "unknown-120",
534  "unknown-121",
535  "unknown-122",
536  "unknown-123",
537  "unknown-124",
538  "unknown-125",
539  "unknown-126",
540  "unknown-127",
541  "unknown-128",
542  "unknown-129",
543  "unknown-130",
544  "unknown-131",
545  "unknown-132",
546  "unknown-133",
547  "unknown-134",
548  "unknown-135",
549  "unknown-136",
550  "unknown-137",
551  "unknown-138",
552  "unknown-139",
553  "unknown-140",
554  "unknown-141",
555  "unknown-142",
556  "unknown-143",
557  "unknown-144",
558  "unknown-145",
559  "unknown-146",
560  "unknown-147",
561  "unknown-148",
562  "unknown-149",
563  "unknown-150",
564  "unknown-151",
565  "unknown-152",
566  "unknown-153",
567  "unknown-154",
568  "unknown-155",
569  "unknown-156",
570  "unknown-157",
571  "unknown-158",
572  "unknown-159",
573  "unknown-160",
574  "unknown-161",
575  "unknown-162",
576  "unknown-163",
577  "unknown-164",
578  "unknown-165",
579  "unknown-166",
580  "unknown-167",
581  "unknown-168",
582  "unknown-169",
583  "unknown-170",
584  "unknown-171",
585  "unknown-172",
586  "unknown-173",
587  "unknown-174",
588  "unknown-175",
589  "unknown-176",
590  "unknown-177",
591  "unknown-178",
592  "unknown-179",
593  "unknown-180",
594  "unknown-181",
595  "unknown-182",
596  "unknown-183",
597  "unknown-184",
598  "unknown-185",
599  "unknown-186",
600  "unknown-187",
601  "unknown-188",
602  "unknown-189",
603  "unknown-190",
604  "unknown-191",
605  "unknown-192",
606  "unknown-193",
607  "unknown-194",
608  "unknown-195",
609  "unknown-196",
610  "unknown-197",
611  "unknown-198",
612  "unknown-199",
613  "unknown-200",
614  "unknown-201",
615  "unknown-202",
616  "unknown-203",
617  "unknown-204",
618  "unknown-205",
619  "unknown-206",
620  "unknown-207",
621  "unknown-208",
622  "unknown-209",
623  "unknown-210",
624  "unknown-211",
625  "unknown-212",
626  "unknown-213",
627  "unknown-214",
628  "unknown-215",
629  "unknown-216",
630  "unknown-217",
631  "unknown-218",
632  "unknown-219",
633  "unknown-220",
634  "unknown-221",
635  "unknown-222",
636  "unknown-223",
637  "unknown-224",
638  "unknown-225",
639  "unknown-226",
640  "unknown-227",
641  "unknown-228",
642  "unknown-229",
643  "unknown-230",
644  "unknown-231",
645  "unknown-232",
646  "unknown-233",
647  "unknown-234",
648  "unknown-235",
649  "unknown-236",
650  "unknown-237",
651  "unknown-238",
652  "unknown-239",
653  "unknown-240",
654  "unknown-241",
655  "unknown-242",
656  "unknown-243",
657  "unknown-244",
658  "unknown-245",
659  "unknown-246",
660  "unknown-247",
661  "unknown-248",
662  "unknown-249",
663  "unknown-250",
664  "unknown-251",
665  "unknown-252",
666  "unknown-253",
667  "unknown-254",
668  "unknown-255" };
669 
670 
671 
673 
675 {
676  int i;
677 
678  dhcp_universe.name = "dhcp";
679  dhcp_universe.hash = new_hash ();
680  if (!dhcp_universe.hash)
681  error ("Can't allocate dhcp option hash table.");
682  for (i = 0; i < 256; i++) {
683  dhcp_universe.options [i] = &dhcp_options [i];
684  add_hash (dhcp_universe.hash,
685  (unsigned char *)dhcp_options [i].name, 0,
686  (unsigned char *)&dhcp_options [i]);
687  }
688  universe_hash.hash_count = DEFAULT_HASH_SIZE;
690  (unsigned char *)dhcp_universe.name, 0,
691  (unsigned char *)&dhcp_universe);
692 }
#define DHO_NAME_SERVERS
Definition: dhcp.h:101
char * hardware_types[]
Definition: tables.c:412
#define DHO_IMPRESS_SERVERS
Definition: dhcp.h:106
#define DHO_IP_FORWARDING
Definition: dhcp.h:115
#define error(str)
Definition: mkdosfs.c:1605
char copyright[]
Definition: main.c:27
#define DHO_DHCP_CLASS_IDENTIFIER
Definition: dhcp.h:156
#define DHO_NON_LOCAL_SOURCE_ROUTING
Definition: dhcp.h:116
#define DHO_ROUTER_SOLICITATION_ADDRESS
Definition: dhcp.h:128
#define DHO_NETBIOS_NODE_TYPE
Definition: dhcp.h:142
#define DHO_NIS_DOMAIN
Definition: dhcp.h:136
struct hash_table * new_hash()
Definition: hash.c:53
#define DHO_LOG_SERVERS
Definition: dhcp.h:103
#define DEFAULT_HASH_SIZE
Definition: dhcpd.h:259
#define DHO_DHCP_PARAMETER_REQUEST_LIST
Definition: dhcp.h:151
#define DHO_NTP_SERVERS
Definition: dhcp.h:138
#define DHO_ROUTERS
Definition: dhcp.h:99
#define DHO_ROUTER_DISCOVERY
Definition: dhcp.h:127
Definition: tree.h:55
struct dhcp_option dhcp_options[256]
Definition: tables.c:68
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define DHO_EXTENSIONS_PATH
Definition: dhcp.h:114
#define DHO_DHCP_CLIENT_IDENTIFIER
Definition: dhcp.h:157
#define DHO_TIME_OFFSET
Definition: dhcp.h:98
#define DHO_ALL_SUBNETS_LOCAL
Definition: dhcp.h:123
#define DHO_ARP_CACHE_TIMEOUT
Definition: dhcp.h:131
#define DHO_TCP_KEEPALIVE_INTERVAL
Definition: dhcp.h:134
#define DHO_INTERFACE_MTU
Definition: dhcp.h:122
struct hash_table universe_hash
Definition: tables.c:672
char * name
Definition: tree.h:62
#define DHO_MAX_DGRAM_REASSEMBLY
Definition: dhcp.h:118
#define DHO_FONT_SERVERS
Definition: dhcp.h:144
#define DHO_X_DISPLAY_MANAGER
Definition: dhcp.h:145
struct universe dhcp_universe
Definition: tables.c:67
#define DHO_TCP_KEEPALIVE_GARBAGE
Definition: dhcp.h:135
#define DHO_TRAILER_ENCAPSULATION
Definition: dhcp.h:130
#define DHO_NETBIOS_DD_SERVER
Definition: dhcp.h:141
#define DHO_DHCP_RENEWAL_TIME
Definition: dhcp.h:154
void initialize_universes()
Definition: tables.c:674
#define DHO_NETBIOS_SCOPE
Definition: dhcp.h:143
#define DHO_IEEE802_3_ENCAPSULATION
Definition: dhcp.h:132
#define DHO_SUBNET_MASK
Definition: dhcp.h:97
#define DHO_DHCP_OPTION_OVERLOAD
Definition: dhcp.h:148
#define DHO_RESOURCE_LOCATION_SERVERS
Definition: dhcp.h:107
#define DHO_PATH_MTU_PLATEAU_TABLE
Definition: dhcp.h:121
#define DHO_STATIC_ROUTES
Definition: dhcp.h:129
#define DHO_PERFORM_MASK_DISCOVERY
Definition: dhcp.h:125
#define DHO_NETBIOS_NAME_SERVERS
Definition: dhcp.h:140
#define DHO_PATH_MTU_AGING_TIMEOUT
Definition: dhcp.h:120
#define DHO_DHCP_REBINDING_TIME
Definition: dhcp.h:155
#define DHO_TIME_SERVERS
Definition: dhcp.h:100
#define DHO_SWAP_SERVER
Definition: dhcp.h:112
#define DHO_BOOT_SIZE
Definition: dhcp.h:109
void add_hash(struct hash_table *table, unsigned char *name, int len, unsigned char *pointer)
Definition: hash.c:82
#define DHO_BROADCAST_ADDRESS
Definition: dhcp.h:124
int sizeof_dhcp_option_default_priority_list
Definition: tables.c:408
#define DHO_HOST_NAME
Definition: dhcp.h:108
#define DHO_VENDOR_ENCAPSULATED_OPTIONS
Definition: dhcp.h:139
#define DHO_DHCP_REQUESTED_ADDRESS
Definition: dhcp.h:146
#define DHO_DEFAULT_IP_TTL
Definition: dhcp.h:119
#define DHO_NIS_SERVERS
Definition: dhcp.h:137
unsigned char dhcp_option_default_priority_list[]
Definition: tables.c:329
#define DHO_DEFAULT_TCP_TTL
Definition: dhcp.h:133
#define DHO_DHCP_MAX_MESSAGE_SIZE
Definition: dhcp.h:153
#define DHO_DOMAIN_NAME
Definition: dhcp.h:111
#define DHO_DOMAIN_NAME_SERVERS
Definition: dhcp.h:102
#define DHO_MASK_SUPPLIER
Definition: dhcp.h:126
#define DHO_POLICY_FILTER
Definition: dhcp.h:117
#define DHO_MERIT_DUMP
Definition: dhcp.h:110
#define DHO_LPR_SERVERS
Definition: dhcp.h:105
#define DHO_COOKIE_SERVERS
Definition: dhcp.h:104
#define DHO_ROOT_PATH
Definition: dhcp.h:113