4 * @brief Declaration of the data struct ike_header_t.
6 * The data of a parsed header are stored in a struct of this type.
11 * Copyright (C) 2005 Jan Hutter, Martin Willi
12 * Hochschule fuer Technik Rapperswil
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License as published by the
16 * Free Software Foundation; either version 2 of the License, or (at your
17 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
29 #include <pluto/constants.h>
30 #include <pluto/defs.h>
33 * Data structure to hold the data of an IKEv2-Header
35 * The header format of an IKEv2-Message is compatible to the
36 * ISAKMP-Header format to allow implementations supporting
37 * both versions of the IKE-protocol.
40 typedef struct ike_header_s ike_header_t
;
44 * SPI of the initiator
46 u_int64_t initiator_spi
;
48 * SPI of the responder
50 u_int64_t responder_spi
;
54 u_int8_t next_payload
;
68 u_int8_t exchange_type
;
71 * Flags of the Message
76 * Sender is initiator of the associated IKE_SA_INIT-Exchange
80 * is protocol supporting higher version?
84 * TRUE, if this is a response, FALSE if its a Request
89 * Associated Message-ID
93 * Length of the whole IKEv2-Message (header and all payloads)
98 #endif /*IKE_HEADER_H_*/