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

Go to the source code of this file.

Functions

int DecodeTeredo (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint16_t len)
 Function to decode Teredo packets.
 
void DecodeTeredoConfig (void)
 
bool DecodeTeredoEnabledForPort (const uint16_t sp, const uint16_t dp)
 

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.

References DecodeThreadVars_::counter_teredo, DEBUG_VALIDATE_BUG_ON, ThreadVars_::decode_pq, DECODE_TUNNEL_IPV6_TEREDO, dtv, IP_GET_RAW_VER, IPV6_GET_RAW_HLIM, IPV6_GET_RAW_NH, IPV6_GET_RAW_PLEN, IPV6_HEADER_LEN, len, PacketEnqueueNoLock(), PacketTunnelPktSetup(), PKT_SET_SRC, PKT_SRC_DECODER_TEREDO, StatsIncr(), TEREDO_ORIG_INDICATION_LENGTH, TM_ECODE_FAILED, TM_ECODE_OK, and tv.

Referenced by DecodeUDP().

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

◆ DecodeTeredoConfig()

void DecodeTeredoConfig ( void  )

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

References SCConfGetBool(), SCConfGetNode(), and SCConfNode_::val.

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, and TEREDO_UNSET_PORT.

Referenced by DecodeUDP().

Here is the caller graph for this function: