suricata
decode-esp.h
Go to the documentation of this file.
1
/* Copyright (C) 2020 Open Information Security Foundation
2
*
3
* You can copy, redistribute or modify this Program under the terms of
4
* the GNU General Public License version 2 as published by the Free
5
* Software Foundation.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* version 2 along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
* 02110-1301, USA.
16
*/
17
18
/**
19
* \file
20
*/
21
22
#ifndef SURICATA_DECODE_ESP_H
23
#define SURICATA_DECODE_ESP_H
24
25
/** \brief size of the ESP header */
26
#define ESP_HEADER_LEN 8
27
28
/** \brief Get the spi field off a packet */
29
#define ESP_GET_SPI(esph) SCNtohl((esph)->spi)
30
/** \brief Get the sequence field off a packet */
31
#define ESP_GET_SEQUENCE(esph) SCNtohl((esph)->sequence)
32
33
/** \brief ESP Header */
34
typedef
struct
ESPHdr_
{
35
uint32_t
spi
;
/** < ESP Security Parameters Index */
36
uint32_t
sequence
;
/** < ESP sequence number */
37
}
__attribute__
((__packed__)) ESPHdr;
38
39
void
DecodeESPRegisterTests
(
void
);
40
41
#endif
/* SURICATA_DECODE_ESP_H */
__attribute__
struct ESPHdr_ __attribute__((__packed__)) ESPHdr
ESP Header.
Definition:
decode-vlan.c:103
ESPHdr_::sequence
uint32_t sequence
Definition:
decode-esp.h:36
ESPHdr_::spi
uint32_t spi
Definition:
decode-esp.h:35
ESPHdr_
ESP Header.
Definition:
decode-esp.h:34
DecodeESPRegisterTests
void DecodeESPRegisterTests(void)
Definition:
decode-esp.c:196
src
decode-esp.h
Generated on Sat Dec 21 2024 23:30:26 for suricata by
1.8.18