1 # $OpenBSD: isakmp_fld.fld,v 1.8 2004/06/20 15:24:05 ho Exp $
2 # $EOM: isakmp_fld.fld,v 1.5 1999/04/25 13:38:22 niklas Exp $
5 # Copyright (c) 1998, 2001 Niklas Hallqvist. All rights reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
10 # 1. Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # This code was written under funding by Ericsson Radio Systems.
32 # XXX There are num-declared fields below that really are csts.
34 # The ISAKMP message header.
36 # XXX I want a way to specify COOKIES as an overlay of ICOOKIE + RCOOKIE
39 NEXT_PAYLOAD cst 1 isakmp_payload_cst
41 EXCH_TYPE cst 1 ike_exch_cst,isakmp_exch_cst
42 FLAGS mask 1 isakmp_flags_cst
47 # Generic payload header.
49 NEXT_PAYLOAD cst 1 isakmp_payload_cst
54 # ISAKMP data attributes
56 TYPE num 2 ike_attr_cst,ipsec_attr_cst
61 # Security association payload.
62 ISAKMP_SA : ISAKMP_GEN
63 DOI num 4 isakmp_doi_cst,ipsec_doi_cst
68 ISAKMP_PROP : ISAKMP_GEN
70 PROTO cst 1 isakmp_proto_cst,ipsec_proto_cst
77 ISAKMP_TRANSFORM : ISAKMP_GEN
84 # Key exchange payload.
85 ISAKMP_KE : ISAKMP_GEN
89 # Identification payload.
90 ISAKMP_ID : ISAKMP_GEN
96 # Certificate payload.
97 ISAKMP_CERT : ISAKMP_GEN
98 ENCODING cst 1 isakmp_certenc_cst
102 # Certificate request payload.
103 ISAKMP_CERTREQ : ISAKMP_GEN
104 TYPE cst 1 isakmp_certenc_cst
109 ISAKMP_HASH : ISAKMP_GEN
114 ISAKMP_SIG : ISAKMP_GEN
119 ISAKMP_NONCE : ISAKMP_GEN
124 ISAKMP_NOTIFY : ISAKMP_GEN
125 DOI cst 4 isakmp_doi_cst,ipsec_doi_cst
126 PROTO cst 1 isakmp_proto_cst
128 MSG_TYPE cst 2 isakmp_notify_cst,ipsec_notify_cst
133 ISAKMP_DELETE : ISAKMP_GEN
134 DOI cst 4 isakmp_doi_cst,ipsec_doi_cst
135 PROTO cst 1 isakmp_proto_cst
142 ISAKMP_VENDOR : ISAKMP_GEN
147 ISAKMP_ATTRIBUTE : ISAKMP_GEN
148 TYPE num 1 isakmp_cfg_cst
154 # NAT Discovery payload.
155 ISAKMP_NAT_D : ISAKMP_GEN
159 # NAT Original Address payload.
160 ISAKMP_NAT_OA : ISAKMP_GEN