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