suricata
decode-vntag.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  VNTagHdr_
 

Macros

#define GET_VNTAG_DIR(vntagh)   ((SCNtohl((vntagh)->tag) & 0x80000000) >> 31)
 
#define GET_VNTAG_PTR(vntagh)   ((SCNtohl((vntagh)->tag) & 0x40000000) >> 30)
 
#define GET_VNTAG_DEST(vntagh)   ((SCNtohl((vntagh)->tag) & 0x3FFF0000) >> 16)
 
#define GET_VNTAG_LOOPED(vntagh)   ((SCNtohl((vntagh)->tag) & 0x00008000) >> 15)
 
#define GET_VNTAG_VERSION(vntagh)   ((SCNtohl((vntagh)->tag) & 0x00003000) >> 12)
 
#define GET_VNTAG_SRC(vntagh)   ((SCNtohl((vntagh)->tag) & 0x00000FFF))
 
#define GET_VNTAG_PROTO(vntagh)   ((SCNtohs((vntagh)->protocol)))
 
#define VNTAG_HEADER_LEN   6
 

Functions

struct VNTagHdr_ __attribute__ ((__packed__)) VNTagHdr
 DNP3 link header. More...
 
void DecodeVNTagRegisterTests (void)
 

Variables

uint32_t tag
 
uint16_t protocol
 

Detailed Description

Author
Jeff Lucovsky jeff@.nosp@m.luco.nosp@m.vsky..nosp@m.org

Definition in file decode-vntag.h.

Macro Definition Documentation

◆ GET_VNTAG_DEST

#define GET_VNTAG_DEST (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x3FFF0000) >> 16)

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

◆ GET_VNTAG_DIR

#define GET_VNTAG_DIR (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x80000000) >> 31)

VNTag macros to access VNTag direction, dst vif_id, dest, looped, version, src vif_id

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

◆ GET_VNTAG_LOOPED

#define GET_VNTAG_LOOPED (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x00008000) >> 15)

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

◆ GET_VNTAG_PROTO

#define GET_VNTAG_PROTO (   vntagh)    ((SCNtohs((vntagh)->protocol)))

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

◆ GET_VNTAG_PTR

#define GET_VNTAG_PTR (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x40000000) >> 30)

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

◆ GET_VNTAG_SRC

#define GET_VNTAG_SRC (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x00000FFF))

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

◆ GET_VNTAG_VERSION

#define GET_VNTAG_VERSION (   vntagh)    ((SCNtohl((vntagh)->tag) & 0x00003000) >> 12)

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

◆ VNTAG_HEADER_LEN

#define VNTAG_HEADER_LEN   6

VNTag header length

Definition at line 45 of file decode-vntag.h.

Function Documentation

◆ DecodeVNTagRegisterTests()

void DecodeVNTagRegisterTests ( void  )

Definition at line 172 of file decode-vntag.c.

References UtRegisterTest().

Here is the call graph for this function:

Variable Documentation

◆ protocol

uint16_t protocol

protocol field

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

◆ tag

uint32_t tag

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

Referenced by TagHashAddTag().