/* DO NOT EDIT-- this file is automatically generated.  */

#ifndef _ISAKMP_FLD_H_
#define _ISAKMP_FLD_H_

#include "sysdep.h"

#include "field.h"

struct constant_map;





extern struct field isakmp_hdr_fld[];

#define ISAKMP_HDR_ICOOKIE_OFF 0
#define ISAKMP_HDR_ICOOKIE_LEN 8
#define GET_ISAKMP_HDR_ICOOKIE(buf, val) field_get_raw (isakmp_hdr_fld + 0, buf, val)
#define SET_ISAKMP_HDR_ICOOKIE(buf, val) field_set_raw (isakmp_hdr_fld + 0, buf, val)
#define ISAKMP_HDR_RCOOKIE_OFF 8
#define ISAKMP_HDR_RCOOKIE_LEN 8
#define GET_ISAKMP_HDR_RCOOKIE(buf, val) field_get_raw (isakmp_hdr_fld + 1, buf, val)
#define SET_ISAKMP_HDR_RCOOKIE(buf, val) field_set_raw (isakmp_hdr_fld + 1, buf, val)
#define ISAKMP_HDR_NEXT_PAYLOAD_OFF 16
#define ISAKMP_HDR_NEXT_PAYLOAD_LEN 1
extern struct constant_map *isakmp_hdr_next_payload_maps[];
#define GET_ISAKMP_HDR_NEXT_PAYLOAD(buf) field_get_num (isakmp_hdr_fld + 2, buf)
#define SET_ISAKMP_HDR_NEXT_PAYLOAD(buf, val) field_set_num (isakmp_hdr_fld + 2, buf, val)
#define ISAKMP_HDR_VERSION_OFF 17
#define ISAKMP_HDR_VERSION_LEN 1
#define GET_ISAKMP_HDR_VERSION(buf) field_get_num (isakmp_hdr_fld + 3, buf)
#define SET_ISAKMP_HDR_VERSION(buf, val) field_set_num (isakmp_hdr_fld + 3, buf, val)
#define ISAKMP_HDR_EXCH_TYPE_OFF 18
#define ISAKMP_HDR_EXCH_TYPE_LEN 1
extern struct constant_map *isakmp_hdr_exch_type_maps[];
#define GET_ISAKMP_HDR_EXCH_TYPE(buf) field_get_num (isakmp_hdr_fld + 4, buf)
#define SET_ISAKMP_HDR_EXCH_TYPE(buf, val) field_set_num (isakmp_hdr_fld + 4, buf, val)
#define ISAKMP_HDR_FLAGS_OFF 19
#define ISAKMP_HDR_FLAGS_LEN 1
extern struct constant_map *isakmp_hdr_flags_maps[];
#define GET_ISAKMP_HDR_FLAGS(buf) field_get_num (isakmp_hdr_fld + 5, buf)
#define SET_ISAKMP_HDR_FLAGS(buf, val) field_set_num (isakmp_hdr_fld + 5, buf, val)
#define ISAKMP_HDR_MESSAGE_ID_OFF 20
#define ISAKMP_HDR_MESSAGE_ID_LEN 4
#define GET_ISAKMP_HDR_MESSAGE_ID(buf, val) field_get_raw (isakmp_hdr_fld + 6, buf, val)
#define SET_ISAKMP_HDR_MESSAGE_ID(buf, val) field_set_raw (isakmp_hdr_fld + 6, buf, val)
#define ISAKMP_HDR_LENGTH_OFF 24
#define ISAKMP_HDR_LENGTH_LEN 4
#define GET_ISAKMP_HDR_LENGTH(buf) field_get_num (isakmp_hdr_fld + 7, buf)
#define SET_ISAKMP_HDR_LENGTH(buf, val) field_set_num (isakmp_hdr_fld + 7, buf, val)
#define ISAKMP_HDR_SZ 28

extern struct field isakmp_gen_fld[];

#define ISAKMP_GEN_NEXT_PAYLOAD_OFF 0
#define ISAKMP_GEN_NEXT_PAYLOAD_LEN 1
extern struct constant_map *isakmp_gen_next_payload_maps[];
#define GET_ISAKMP_GEN_NEXT_PAYLOAD(buf) field_get_num (isakmp_gen_fld + 0, buf)
#define SET_ISAKMP_GEN_NEXT_PAYLOAD(buf, val) field_set_num (isakmp_gen_fld + 0, buf, val)
#define ISAKMP_GEN_RESERVED_OFF 1
#define ISAKMP_GEN_RESERVED_LEN 1
#define GET_ISAKMP_GEN_RESERVED(buf) field_get_num (isakmp_gen_fld + 1, buf)
#define SET_ISAKMP_GEN_RESERVED(buf, val) field_set_num (isakmp_gen_fld + 1, buf, val)
#define ISAKMP_GEN_LENGTH_OFF 2
#define ISAKMP_GEN_LENGTH_LEN 2
#define GET_ISAKMP_GEN_LENGTH(buf) field_get_num (isakmp_gen_fld + 2, buf)
#define SET_ISAKMP_GEN_LENGTH(buf, val) field_set_num (isakmp_gen_fld + 2, buf, val)
#define ISAKMP_GEN_SZ 4

extern struct field isakmp_attr_fld[];

#define ISAKMP_ATTR_TYPE_OFF 0
#define ISAKMP_ATTR_TYPE_LEN 2
extern struct constant_map *isakmp_attr_type_maps[];
#define GET_ISAKMP_ATTR_TYPE(buf) field_get_num (isakmp_attr_fld + 0, buf)
#define SET_ISAKMP_ATTR_TYPE(buf, val) field_set_num (isakmp_attr_fld + 0, buf, val)
#define ISAKMP_ATTR_LENGTH_VALUE_OFF 2
#define ISAKMP_ATTR_LENGTH_VALUE_LEN 2
#define GET_ISAKMP_ATTR_LENGTH_VALUE(buf) field_get_num (isakmp_attr_fld + 1, buf)
#define SET_ISAKMP_ATTR_LENGTH_VALUE(buf, val) field_set_num (isakmp_attr_fld + 1, buf, val)
#define ISAKMP_ATTR_VALUE_OFF 4
#define GET_ISAKMP_ATTR_VALUE(buf, val) field_get_raw (isakmp_attr_fld + 2, buf, val)
#define SET_ISAKMP_ATTR_VALUE(buf, val) field_set_raw (isakmp_attr_fld + 2, buf, val)
#define ISAKMP_ATTR_SZ 4

extern struct field isakmp_sa_fld[];

#define ISAKMP_SA_DOI_OFF 4
#define ISAKMP_SA_DOI_LEN 4
extern struct constant_map *isakmp_sa_doi_maps[];
#define GET_ISAKMP_SA_DOI(buf) field_get_num (isakmp_sa_fld + 0, buf)
#define SET_ISAKMP_SA_DOI(buf, val) field_set_num (isakmp_sa_fld + 0, buf, val)
#define ISAKMP_SA_SIT_OFF 8
#define GET_ISAKMP_SA_SIT(buf, val) field_get_raw (isakmp_sa_fld + 1, buf, val)
#define SET_ISAKMP_SA_SIT(buf, val) field_set_raw (isakmp_sa_fld + 1, buf, val)
#define ISAKMP_SA_SZ 8

extern struct field isakmp_prop_fld[];

#define ISAKMP_PROP_NO_OFF 4
#define ISAKMP_PROP_NO_LEN 1
#define GET_ISAKMP_PROP_NO(buf) field_get_num (isakmp_prop_fld + 0, buf)
#define SET_ISAKMP_PROP_NO(buf, val) field_set_num (isakmp_prop_fld + 0, buf, val)
#define ISAKMP_PROP_PROTO_OFF 5
#define ISAKMP_PROP_PROTO_LEN 1
extern struct constant_map *isakmp_prop_proto_maps[];
#define GET_ISAKMP_PROP_PROTO(buf) field_get_num (isakmp_prop_fld + 1, buf)
#define SET_ISAKMP_PROP_PROTO(buf, val) field_set_num (isakmp_prop_fld + 1, buf, val)
#define ISAKMP_PROP_SPI_SZ_OFF 6
#define ISAKMP_PROP_SPI_SZ_LEN 1
#define GET_ISAKMP_PROP_SPI_SZ(buf) field_get_num (isakmp_prop_fld + 2, buf)
#define SET_ISAKMP_PROP_SPI_SZ(buf, val) field_set_num (isakmp_prop_fld + 2, buf, val)
#define ISAKMP_PROP_NTRANSFORMS_OFF 7
#define ISAKMP_PROP_NTRANSFORMS_LEN 1
#define GET_ISAKMP_PROP_NTRANSFORMS(buf) field_get_num (isakmp_prop_fld + 3, buf)
#define SET_ISAKMP_PROP_NTRANSFORMS(buf, val) field_set_num (isakmp_prop_fld + 3, buf, val)
#define ISAKMP_PROP_SPI_OFF 8
#define GET_ISAKMP_PROP_SPI(buf, val) field_get_raw (isakmp_prop_fld + 4, buf, val)
#define SET_ISAKMP_PROP_SPI(buf, val) field_set_raw (isakmp_prop_fld + 4, buf, val)
#define ISAKMP_PROP_SZ 8

extern struct field isakmp_transform_fld[];

#define ISAKMP_TRANSFORM_NO_OFF 4
#define ISAKMP_TRANSFORM_NO_LEN 1
#define GET_ISAKMP_TRANSFORM_NO(buf) field_get_num (isakmp_transform_fld + 0, buf)
#define SET_ISAKMP_TRANSFORM_NO(buf, val) field_set_num (isakmp_transform_fld + 0, buf, val)
#define ISAKMP_TRANSFORM_ID_OFF 5
#define ISAKMP_TRANSFORM_ID_LEN 1
#define GET_ISAKMP_TRANSFORM_ID(buf) field_get_num (isakmp_transform_fld + 1, buf)
#define SET_ISAKMP_TRANSFORM_ID(buf, val) field_set_num (isakmp_transform_fld + 1, buf, val)
#define ISAKMP_TRANSFORM_RESERVED_OFF 6
#define ISAKMP_TRANSFORM_RESERVED_LEN 2
#define GET_ISAKMP_TRANSFORM_RESERVED(buf) field_get_num (isakmp_transform_fld + 2, buf)
#define SET_ISAKMP_TRANSFORM_RESERVED(buf, val) field_set_num (isakmp_transform_fld + 2, buf, val)
#define ISAKMP_TRANSFORM_SA_ATTRS_OFF 8
#define GET_ISAKMP_TRANSFORM_SA_ATTRS(buf, val) field_get_raw (isakmp_transform_fld + 3, buf, val)
#define SET_ISAKMP_TRANSFORM_SA_ATTRS(buf, val) field_set_raw (isakmp_transform_fld + 3, buf, val)
#define ISAKMP_TRANSFORM_SZ 8

extern struct field isakmp_ke_fld[];

#define ISAKMP_KE_DATA_OFF 4
#define GET_ISAKMP_KE_DATA(buf, val) field_get_raw (isakmp_ke_fld + 0, buf, val)
#define SET_ISAKMP_KE_DATA(buf, val) field_set_raw (isakmp_ke_fld + 0, buf, val)
#define ISAKMP_KE_SZ 4

extern struct field isakmp_id_fld[];

#define ISAKMP_ID_TYPE_OFF 4
#define ISAKMP_ID_TYPE_LEN 1
#define GET_ISAKMP_ID_TYPE(buf) field_get_num (isakmp_id_fld + 0, buf)
#define SET_ISAKMP_ID_TYPE(buf, val) field_set_num (isakmp_id_fld + 0, buf, val)
#define ISAKMP_ID_DOI_DATA_OFF 5
#define ISAKMP_ID_DOI_DATA_LEN 3
#define GET_ISAKMP_ID_DOI_DATA(buf, val) field_get_raw (isakmp_id_fld + 1, buf, val)
#define SET_ISAKMP_ID_DOI_DATA(buf, val) field_set_raw (isakmp_id_fld + 1, buf, val)
#define ISAKMP_ID_DATA_OFF 8
#define GET_ISAKMP_ID_DATA(buf, val) field_get_raw (isakmp_id_fld + 2, buf, val)
#define SET_ISAKMP_ID_DATA(buf, val) field_set_raw (isakmp_id_fld + 2, buf, val)
#define ISAKMP_ID_SZ 8

extern struct field isakmp_cert_fld[];

#define ISAKMP_CERT_ENCODING_OFF 4
#define ISAKMP_CERT_ENCODING_LEN 1
extern struct constant_map *isakmp_cert_encoding_maps[];
#define GET_ISAKMP_CERT_ENCODING(buf) field_get_num (isakmp_cert_fld + 0, buf)
#define SET_ISAKMP_CERT_ENCODING(buf, val) field_set_num (isakmp_cert_fld + 0, buf, val)
#define ISAKMP_CERT_DATA_OFF 5
#define GET_ISAKMP_CERT_DATA(buf, val) field_get_raw (isakmp_cert_fld + 1, buf, val)
#define SET_ISAKMP_CERT_DATA(buf, val) field_set_raw (isakmp_cert_fld + 1, buf, val)
#define ISAKMP_CERT_SZ 5

extern struct field isakmp_certreq_fld[];

#define ISAKMP_CERTREQ_TYPE_OFF 4
#define ISAKMP_CERTREQ_TYPE_LEN 1
extern struct constant_map *isakmp_certreq_type_maps[];
#define GET_ISAKMP_CERTREQ_TYPE(buf) field_get_num (isakmp_certreq_fld + 0, buf)
#define SET_ISAKMP_CERTREQ_TYPE(buf, val) field_set_num (isakmp_certreq_fld + 0, buf, val)
#define ISAKMP_CERTREQ_AUTHORITY_OFF 5
#define GET_ISAKMP_CERTREQ_AUTHORITY(buf, val) field_get_raw (isakmp_certreq_fld + 1, buf, val)
#define SET_ISAKMP_CERTREQ_AUTHORITY(buf, val) field_set_raw (isakmp_certreq_fld + 1, buf, val)
#define ISAKMP_CERTREQ_SZ 5

extern struct field isakmp_hash_fld[];

#define ISAKMP_HASH_DATA_OFF 4
#define GET_ISAKMP_HASH_DATA(buf, val) field_get_raw (isakmp_hash_fld + 0, buf, val)
#define SET_ISAKMP_HASH_DATA(buf, val) field_set_raw (isakmp_hash_fld + 0, buf, val)
#define ISAKMP_HASH_SZ 4

extern struct field isakmp_sig_fld[];

#define ISAKMP_SIG_DATA_OFF 4
#define GET_ISAKMP_SIG_DATA(buf, val) field_get_raw (isakmp_sig_fld + 0, buf, val)
#define SET_ISAKMP_SIG_DATA(buf, val) field_set_raw (isakmp_sig_fld + 0, buf, val)
#define ISAKMP_SIG_SZ 4

extern struct field isakmp_nonce_fld[];

#define ISAKMP_NONCE_DATA_OFF 4
#define GET_ISAKMP_NONCE_DATA(buf, val) field_get_raw (isakmp_nonce_fld + 0, buf, val)
#define SET_ISAKMP_NONCE_DATA(buf, val) field_set_raw (isakmp_nonce_fld + 0, buf, val)
#define ISAKMP_NONCE_SZ 4

extern struct field isakmp_notify_fld[];

#define ISAKMP_NOTIFY_DOI_OFF 4
#define ISAKMP_NOTIFY_DOI_LEN 4
extern struct constant_map *isakmp_notify_doi_maps[];
#define GET_ISAKMP_NOTIFY_DOI(buf) field_get_num (isakmp_notify_fld + 0, buf)
#define SET_ISAKMP_NOTIFY_DOI(buf, val) field_set_num (isakmp_notify_fld + 0, buf, val)
#define ISAKMP_NOTIFY_PROTO_OFF 8
#define ISAKMP_NOTIFY_PROTO_LEN 1
extern struct constant_map *isakmp_notify_proto_maps[];
#define GET_ISAKMP_NOTIFY_PROTO(buf) field_get_num (isakmp_notify_fld + 1, buf)
#define SET_ISAKMP_NOTIFY_PROTO(buf, val) field_set_num (isakmp_notify_fld + 1, buf, val)
#define ISAKMP_NOTIFY_SPI_SZ_OFF 9
#define ISAKMP_NOTIFY_SPI_SZ_LEN 1
#define GET_ISAKMP_NOTIFY_SPI_SZ(buf) field_get_num (isakmp_notify_fld + 2, buf)
#define SET_ISAKMP_NOTIFY_SPI_SZ(buf, val) field_set_num (isakmp_notify_fld + 2, buf, val)
#define ISAKMP_NOTIFY_MSG_TYPE_OFF 10
#define ISAKMP_NOTIFY_MSG_TYPE_LEN 2
extern struct constant_map *isakmp_notify_msg_type_maps[];
#define GET_ISAKMP_NOTIFY_MSG_TYPE(buf) field_get_num (isakmp_notify_fld + 3, buf)
#define SET_ISAKMP_NOTIFY_MSG_TYPE(buf, val) field_set_num (isakmp_notify_fld + 3, buf, val)
#define ISAKMP_NOTIFY_SPI_OFF 12
#define GET_ISAKMP_NOTIFY_SPI(buf, val) field_get_raw (isakmp_notify_fld + 4, buf, val)
#define SET_ISAKMP_NOTIFY_SPI(buf, val) field_set_raw (isakmp_notify_fld + 4, buf, val)
#define ISAKMP_NOTIFY_SZ 12

extern struct field isakmp_delete_fld[];

#define ISAKMP_DELETE_DOI_OFF 4
#define ISAKMP_DELETE_DOI_LEN 4
extern struct constant_map *isakmp_delete_doi_maps[];
#define GET_ISAKMP_DELETE_DOI(buf) field_get_num (isakmp_delete_fld + 0, buf)
#define SET_ISAKMP_DELETE_DOI(buf, val) field_set_num (isakmp_delete_fld + 0, buf, val)
#define ISAKMP_DELETE_PROTO_OFF 8
#define ISAKMP_DELETE_PROTO_LEN 1
extern struct constant_map *isakmp_delete_proto_maps[];
#define GET_ISAKMP_DELETE_PROTO(buf) field_get_num (isakmp_delete_fld + 1, buf)
#define SET_ISAKMP_DELETE_PROTO(buf, val) field_set_num (isakmp_delete_fld + 1, buf, val)
#define ISAKMP_DELETE_SPI_SZ_OFF 9
#define ISAKMP_DELETE_SPI_SZ_LEN 1
#define GET_ISAKMP_DELETE_SPI_SZ(buf) field_get_num (isakmp_delete_fld + 2, buf)
#define SET_ISAKMP_DELETE_SPI_SZ(buf, val) field_set_num (isakmp_delete_fld + 2, buf, val)
#define ISAKMP_DELETE_NSPIS_OFF 10
#define ISAKMP_DELETE_NSPIS_LEN 2
#define GET_ISAKMP_DELETE_NSPIS(buf) field_get_num (isakmp_delete_fld + 3, buf)
#define SET_ISAKMP_DELETE_NSPIS(buf, val) field_set_num (isakmp_delete_fld + 3, buf, val)
#define ISAKMP_DELETE_SPI_OFF 12
#define GET_ISAKMP_DELETE_SPI(buf, val) field_get_raw (isakmp_delete_fld + 4, buf, val)
#define SET_ISAKMP_DELETE_SPI(buf, val) field_set_raw (isakmp_delete_fld + 4, buf, val)
#define ISAKMP_DELETE_SZ 12

extern struct field isakmp_vendor_fld[];

#define ISAKMP_VENDOR_ID_OFF 4
#define GET_ISAKMP_VENDOR_ID(buf, val) field_get_raw (isakmp_vendor_fld + 0, buf, val)
#define SET_ISAKMP_VENDOR_ID(buf, val) field_set_raw (isakmp_vendor_fld + 0, buf, val)
#define ISAKMP_VENDOR_SZ 4

extern struct field isakmp_attribute_fld[];

#define ISAKMP_ATTRIBUTE_TYPE_OFF 4
#define ISAKMP_ATTRIBUTE_TYPE_LEN 1
extern struct constant_map *isakmp_attribute_type_maps[];
#define GET_ISAKMP_ATTRIBUTE_TYPE(buf) field_get_num (isakmp_attribute_fld + 0, buf)
#define SET_ISAKMP_ATTRIBUTE_TYPE(buf, val) field_set_num (isakmp_attribute_fld + 0, buf, val)
#define ISAKMP_ATTRIBUTE_RESERVED_OFF 5
#define ISAKMP_ATTRIBUTE_RESERVED_LEN 1
#define GET_ISAKMP_ATTRIBUTE_RESERVED(buf) field_get_num (isakmp_attribute_fld + 1, buf)
#define SET_ISAKMP_ATTRIBUTE_RESERVED(buf, val) field_set_num (isakmp_attribute_fld + 1, buf, val)
#define ISAKMP_ATTRIBUTE_ID_OFF 6
#define ISAKMP_ATTRIBUTE_ID_LEN 2
#define GET_ISAKMP_ATTRIBUTE_ID(buf) field_get_num (isakmp_attribute_fld + 2, buf)
#define SET_ISAKMP_ATTRIBUTE_ID(buf, val) field_set_num (isakmp_attribute_fld + 2, buf, val)
#define ISAKMP_ATTRIBUTE_ATTRS_OFF 8
#define GET_ISAKMP_ATTRIBUTE_ATTRS(buf, val) field_get_raw (isakmp_attribute_fld + 3, buf, val)
#define SET_ISAKMP_ATTRIBUTE_ATTRS(buf, val) field_set_raw (isakmp_attribute_fld + 3, buf, val)
#define ISAKMP_ATTRIBUTE_SZ 8

#endif /* _ISAKMP_FLD_H_ */
