suricata
|
#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"
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... | |
Decode Teredo Tunneling protocol.
This implementation is based upon RFC 4380: http://www.ietf.org/rfc/rfc4380.txt
Definition in file decode-teredo.c.
#define TEREDO_MAX_PORTS 4 |
Definition at line 49 of file decode-teredo.c.
#define TEREDO_ORIG_INDICATION_LENGTH 8 |
Definition at line 48 of file decode-teredo.c.
#define TEREDO_UNSET_PORT -1 |
Definition at line 50 of file decode-teredo.c.
int DecodeTeredo | ( | ThreadVars * | tv, |
DecodeThreadVars * | dtv, | ||
Packet * | p, | ||
const uint8_t * | pkt, | ||
uint16_t | len | ||
) |
Function to decode Teredo packets.
TM_ECODE_FAILED | if packet is not a Teredo packet, TM_ECODE_OK if it is |
Definition at line 127 of file decode-teredo.c.
References DEBUG_VALIDATE_BUG_ON.
void DecodeTeredoConfig | ( | void | ) |
Definition at line 104 of file decode-teredo.c.
References ConfGetBool().
Referenced by DecodeGlobalConfig().
bool DecodeTeredoEnabledForPort | ( | const uint16_t | sp, |
const uint16_t | dp | ||
) |
Definition at line 57 of file decode-teredo.c.
References SCLogDebug.