suricata
decode-nsh.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NshHdr_
 

Macros

#define NSH_NEXT_PROTO_UNASSIGNED   0x0
 
#define NSH_NEXT_PROTO_IPV4   0x1
 
#define NSH_NEXT_PROTO_IPV6   0x2
 
#define NSH_NEXT_PROTO_ETHERNET   0x3
 
#define NSH_NEXT_PROTO_NSH   0x4
 
#define NSH_NEXT_PROTO_MPLS   0x5
 
#define NSH_NEXT_PROTO_EXPERIMENT1   0xFE
 
#define NSH_NEXT_PROTO_EXPERIMENT2   0xFF
 

Functions

struct NshHdr_ __attribute__ ((packed)) NshHdr
 DNP3 application object header. More...
 
void DecodeNSHRegisterTests (void)
 

Variables

uint16_t ver_flags_len
 
uint8_t md_type
 
uint8_t next_protocol
 
uint32_t spi_si
 

Detailed Description

Macro Definition Documentation

◆ NSH_NEXT_PROTO_ETHERNET

#define NSH_NEXT_PROTO_ETHERNET   0x3

Definition at line 32 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_EXPERIMENT1

#define NSH_NEXT_PROTO_EXPERIMENT1   0xFE

Definition at line 35 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_EXPERIMENT2

#define NSH_NEXT_PROTO_EXPERIMENT2   0xFF

Definition at line 36 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_IPV4

#define NSH_NEXT_PROTO_IPV4   0x1

Definition at line 30 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_IPV6

#define NSH_NEXT_PROTO_IPV6   0x2

Definition at line 31 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_MPLS

#define NSH_NEXT_PROTO_MPLS   0x5

Definition at line 34 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_NSH

#define NSH_NEXT_PROTO_NSH   0x4

Definition at line 33 of file decode-nsh.h.

◆ NSH_NEXT_PROTO_UNASSIGNED

#define NSH_NEXT_PROTO_UNASSIGNED   0x0

Definition at line 29 of file decode-nsh.h.

Function Documentation

◆ __attribute__()

struct NshHdr_ __attribute__ ( (packed)  )

DNP3 application object header.

Definition at line 1 of file source-erf-file.c.

◆ DecodeNSHRegisterTests()

void DecodeNSHRegisterTests ( void  )

Definition at line 283 of file decode-nsh.c.

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

◆ md_type

uint8_t md_type

Definition at line 1 of file decode-nsh.h.

◆ next_protocol

uint8_t next_protocol

Definition at line 2 of file decode-nsh.h.

◆ spi_si

uint32_t spi_si

Definition at line 3 of file decode-nsh.h.

◆ ver_flags_len

uint16_t ver_flags_len

Definition at line 0 of file decode-nsh.h.