suricata
decode-nsh.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
* \author Carl Smith <carl.smith@alliedtelesis.co.nz>
22
*
23
*/
24
25
#ifndef SURICATA_DECODE_NSH_H
26
#define SURICATA_DECODE_NSH_H
27
28
#define NSH_NEXT_PROTO_UNASSIGNED 0x0
29
#define NSH_NEXT_PROTO_IPV4 0x1
30
#define NSH_NEXT_PROTO_IPV6 0x2
31
#define NSH_NEXT_PROTO_ETHERNET 0x3
32
#define NSH_NEXT_PROTO_NSH 0x4
33
#define NSH_NEXT_PROTO_MPLS 0x5
34
#define NSH_NEXT_PROTO_EXPERIMENT1 0xFE
35
#define NSH_NEXT_PROTO_EXPERIMENT2 0xFF
36
37
/*
38
* Network Service Header (NSH)
39
*/
40
typedef
struct
NshHdr_
{
41
uint16_t
ver_flags_len
;
42
uint8_t
md_type
;
43
uint8_t
next_protocol
;
44
uint32_t
spi_si
;
45
}
__attribute__
((packed)) NshHdr;
46
47
void
DecodeNSHRegisterTests
(
void
);
48
49
#endif
/* SURICATA_DECODE_NSH_H */
NshHdr_::next_protocol
uint8_t next_protocol
Definition:
decode-nsh.h:43
NshHdr_::md_type
uint8_t md_type
Definition:
decode-nsh.h:42
NshHdr_::spi_si
uint32_t spi_si
Definition:
decode-nsh.h:44
NshHdr_
Definition:
decode-nsh.h:40
NshHdr_::ver_flags_len
uint16_t ver_flags_len
Definition:
decode-nsh.h:41
DecodeNSHRegisterTests
void DecodeNSHRegisterTests(void)
Definition:
decode-nsh.c:283
__attribute__
struct NshHdr_ __attribute__((packed)) NshHdr
DNP3 application object header.
Definition:
source-erf-file.c:54
src
decode-nsh.h
Generated on Sat Dec 21 2024 23:30:27 for suricata by
1.8.18