suricata
decode-vxlan.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-vxlan.h"
#include "decode-events.h"
#include "detect-engine-port.h"
#include "flow.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "pkt-var.h"
#include "util-profiling.h"
#include "host.h"
Include dependency graph for decode-vxlan.c:

Go to the source code of this file.

Data Structures

struct  VXLANHeader_
 

Macros

#define VXLAN_HEADER_LEN   8
 
#define VXLAN_DEFAULT_PORT   4789
 
#define VXLAN_DEFAULT_PORT_S   "4789"
 

Typedefs

typedef struct VXLANHeader_ VXLANHeader
 

Functions

bool DecodeVXLANEnabledForPort (const uint16_t sp, const uint16_t dp)
 
void DecodeVXLANConfig (void)
 
int DecodeVXLAN (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt, uint32_t len, PacketQueue *pq)
 
void DecodeVXLANRegisterTests (void)
 

Detailed Description

Author
Henrik Kramshoej hlk@k.nosp@m.rams.nosp@m.e.org

VXLAN decoder.

Definition in file decode-vxlan.c.

Macro Definition Documentation

#define VXLAN_DEFAULT_PORT   4789

Definition at line 43 of file decode-vxlan.c.

#define VXLAN_DEFAULT_PORT_S   "4789"

Definition at line 44 of file decode-vxlan.c.

Referenced by DecodeVXLANConfig().

#define VXLAN_HEADER_LEN   8

Definition at line 42 of file decode-vxlan.c.

Referenced by DecodeVXLAN().

Typedef Documentation

typedef struct VXLANHeader_ VXLANHeader

Function Documentation

void DecodeVXLANConfig ( void  )

Definition at line 88 of file decode-vxlan.c.

References ConfGetBool(), ConfGetNode(), ConfNode_::val, and VXLAN_DEFAULT_PORT_S.

Referenced by DecodeGlobalConfig().

Here is the call graph for this function:

Here is the caller graph for this function:

bool DecodeVXLANEnabledForPort ( const uint16_t  sp,
const uint16_t  dp 
)

Definition at line 50 of file decode-vxlan.c.

References DetectPortCleanupList(), DetectPortParse(), head, DetectPort_::next, SC_ERR_INVALID_YAML_CONF_ENTRY, SCLogDebug, and SCLogWarning.

Referenced by DecodeUDP().

Here is the call graph for this function:

Here is the caller graph for this function:

void DecodeVXLANRegisterTests ( void  )

Definition at line 268 of file decode-vxlan.c.

References UtRegisterTest().

Here is the call graph for this function: