|
suricata
|
#include "suricata-common.h"#include "suricata.h"#include "decode.h"#include "decode-events.h"#include "decode-nsh.h"#include "util-validate.h"#include "util-unittest.h"#include "util-debug.h"
Go to the source code of this file.
| int | DecodeNSH (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) |
| Function to decode NSH packets. | |
| void | DecodeNSHRegisterTests (void) |
Decodes Network Service Header (NSH)
Definition in file decode-nsh.c.
| int DecodeNSH | ( | ThreadVars * | tv, |
| DecodeThreadVars * | dtv, | ||
| Packet * | p, | ||
| const uint8_t * | pkt, | ||
| uint32_t | len | ||
| ) |
Function to decode NSH packets.
Definition at line 46 of file decode-nsh.c.
References DecodeThreadVars_::counter_nsh, DEBUG_VALIDATE_BUG_ON, DecodeEthernet(), DecodeIPV4(), DecodeIPV6(), DecodeMPLS(), dtv, ENGINE_SET_EVENT, ENGINE_SET_INVALID_EVENT, len, md_type, next_protocol, NSH_BAD_HEADER_LENGTH, NSH_HEADER_TOO_SMALL, NSH_NEXT_PROTO_ETHERNET, NSH_NEXT_PROTO_IPV4, NSH_NEXT_PROTO_IPV6, NSH_NEXT_PROTO_MPLS, NSH_NEXT_PROTO_NSH, NSH_RESERVED_TYPE, NSH_UNKNOWN_PAYLOAD, NSH_UNSUPPORTED_TYPE, NSH_UNSUPPORTED_VERSION, SCLogDebug, SCLogDebugEnabled(), SCNtohl, SCNtohs, spi, spi_si, StatsIncr(), TM_ECODE_FAILED, TM_ECODE_OK, tv, and version.

| void DecodeNSHRegisterTests | ( | void | ) |
Definition at line 283 of file decode-nsh.c.
References UtRegisterTest().
