]>
The Tcpdump Group git mirrors - tcpdump/blob - dhcp6opt.h
2 * Copyright (C) 1998 and 1999 WIDE Project.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the project nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * draft-ietf-dhc-v6exts-11
34 #ifndef __DHCP6OPT_H_DEFINED
35 #define __DHCP6OPT_H_DEFINED
53 /* index to parameters */
54 #define DH6T_CLIENT_ADV_WAIT 1 /* milliseconds */
55 #define DH6T_DEFAULT_SOLICIT_HOPCOUNT 2 /* times */
56 #define DH6T_SERVER_MIN_ADV_DELAY 3 /* milliseconds */
57 #define DH6T_SERVER_MAX_ADV_DELAY 4 /* milliseconds */
58 #define DH6T_REQUEST_MSG_MIN_RETRANS 5 /* retransmissions */
59 #define DH6T_REPLY_MSG_TIMEOUT 6 /* milliseconds */
60 #define DH6T_REPLY_MSG_RETRANS_INTERVAL 7 /* milliseconds */
61 #define DH6T_RECONF_MSG_TIMEOUT 8 /* milliseconds */
62 #define DH6T_RECONF_MSG_MIN_RETRANS 9 /* retransmissions */
63 #define DH6T_RECONF_MSG_RETRANS_INTERVAL 10 /* milliseconds */
64 #define DH6T_RECONF_MMSG_MIN_RESP 11 /* milliseconds */
65 #define DH6T_RECONF_MMSG_MAX_RESP 12 /* milliseconds */
66 #define DH6T_MIN_SOLICIT_DELAY 13 /* milliseconds */
67 #define DH6T_MAX_SOLICIT_DELAY 14 /* milliseconds */
68 #define DH6T_XID_TIMEOUT 15 /* milliseconds */
69 #define DH6T_RECONF_MULTICAST_REQUEST_WAIT 16 /* milliseconds */
72 extern struct dhcp6_opt
*dh6o_pad
;
73 extern struct dhcp6_opt
*dh6o_end
;
74 extern int dhcp6_param
[];
75 extern void dhcp6opttab_init
__P((void));
76 extern struct dhcp6_opt
*dhcp6opttab_byname
__P((char *));
77 extern struct dhcp6_opt
*dhcp6opttab_bycode
__P((u_int
));
80 #endif /*__DHCP6OPT_H_DEFINED*/