decode-teredo.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-ipv6.h"
#include "decode-teredo.h"
#include "util-validate.h"
#include "util-debug.h"
#include "conf.h"
#include "detect.h"
#include "detect-engine-port.h"
Include dependency graph for decode-teredo.c:

Go to the source code of this file.

#define TEREDO_MAX_PORTS   4
#define TEREDO_UNSET_PORT   -1
bool DecodeTeredoEnabledForPort (const uint16_t sp, const uint16_t dp)
void DecodeTeredoConfig (void)
int DecodeTeredo (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint16_t len)
 Function to decode Teredo packets. More...

Detailed Description

Eric Leblond

Decode Teredo Tunneling protocol.

This implementation is based upon RFC 4380:

Definition in file decode-teredo.c.

Macro Definition Documentation


#define TEREDO_MAX_PORTS   4

Definition at line 49 of file decode-teredo.c.



Definition at line 48 of file decode-teredo.c.


#define TEREDO_UNSET_PORT   -1

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

Function Documentation

◆ DecodeTeredo()

int DecodeTeredo ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint16_t  len 

Function to decode Teredo packets.

Return values
TM_ECODE_FAILEDif packet is not a Teredo packet, TM_ECODE_OK if it is

Definition at line 127 of file decode-teredo.c.


◆ DecodeTeredoConfig()

void DecodeTeredoConfig ( void  )

Definition at line 104 of file decode-teredo.c.

References ConfGetBool().

Referenced by DecodeGlobalConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecodeTeredoEnabledForPort()

bool DecodeTeredoEnabledForPort ( const uint16_t  sp,
const uint16_t  dp 

Definition at line 57 of file decode-teredo.c.

References SCLogDebug.