Fix memory barrier in a debug function
[netbsd-mini2440.git] / dist / tcpdump / dhcp6opt.h
blobc95b2e2f32f149d06dc8b74d53f6699b70a1a0b1
1 /* $NetBSD$ */
3 /* @(#) Header: /tcpdump/master/tcpdump/Attic/dhcp6opt.h,v 1.4 2001/09/17 21:57:51 fenner Exp (LBL) */
4 /*
5 * Copyright (C) 1998 and 1999 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. Neither the name of the project nor the names of its contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
34 * draft-ietf-dhc-v6exts-11
37 #ifndef __DHCP6OPT_H_DEFINED
38 #define __DHCP6OPT_H_DEFINED
40 #define OL6_N -1
41 #define OL6_16N -2
42 #define OL6_Z -3
44 #define OT6_NONE 0
45 #define OT6_V6 1
46 #define OT6_STR 2
47 #define OT6_NUM 3
49 struct dhcp6_opt {
50 u_int code;
51 int len;
52 const char *name;
53 int type;
56 /* index to parameters */
57 #define DH6T_CLIENT_ADV_WAIT 1 /* milliseconds */
58 #define DH6T_DEFAULT_SOLICIT_HOPCOUNT 2 /* times */
59 #define DH6T_SERVER_MIN_ADV_DELAY 3 /* milliseconds */
60 #define DH6T_SERVER_MAX_ADV_DELAY 4 /* milliseconds */
61 #define DH6T_REQUEST_MSG_MIN_RETRANS 5 /* retransmissions */
62 #define DH6T_REPLY_MSG_TIMEOUT 6 /* milliseconds */
63 #define DH6T_REPLY_MSG_RETRANS_INTERVAL 7 /* milliseconds */
64 #define DH6T_RECONF_MSG_TIMEOUT 8 /* milliseconds */
65 #define DH6T_RECONF_MSG_MIN_RETRANS 9 /* retransmissions */
66 #define DH6T_RECONF_MSG_RETRANS_INTERVAL 10 /* milliseconds */
67 #define DH6T_RECONF_MMSG_MIN_RESP 11 /* milliseconds */
68 #define DH6T_RECONF_MMSG_MAX_RESP 12 /* milliseconds */
69 #define DH6T_MIN_SOLICIT_DELAY 13 /* milliseconds */
70 #define DH6T_MAX_SOLICIT_DELAY 14 /* milliseconds */
71 #define DH6T_XID_TIMEOUT 15 /* milliseconds */
72 #define DH6T_RECONF_MULTICAST_REQUEST_WAIT 16 /* milliseconds */
74 #if 0
75 extern struct dhcp6_opt *dh6o_pad;
76 extern struct dhcp6_opt *dh6o_end;
77 extern int dhcp6_param[];
78 extern void dhcp6opttab_init (void);
79 extern struct dhcp6_opt *dhcp6opttab_byname (char *);
80 extern struct dhcp6_opt *dhcp6opttab_bycode (u_int);
81 #endif
83 #endif /*__DHCP6OPT_H_DEFINED*/