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

Go to the source code of this file.

#define TEREDO_ORIG_INDICATION_LENGTH   8
 
#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

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Decode Teredo Tunneling protocol.

This implementation is based upon RFC 4380: http://www.ietf.org/rfc/rfc4380.txt

Definition in file decode-teredo.c.

Macro Definition Documentation

◆ TEREDO_MAX_PORTS

#define TEREDO_MAX_PORTS   4

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

◆ TEREDO_ORIG_INDICATION_LENGTH

#define TEREDO_ORIG_INDICATION_LENGTH   8

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

◆ TEREDO_UNSET_PORT

#define TEREDO_UNSET_PORT   -1

Definition at line 46 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 124 of file decode-teredo.c.

◆ DecodeTeredoConfig()

void DecodeTeredoConfig ( void  )

Definition at line 101 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 53 of file decode-teredo.c.

References SCLogDebug.