suricata
decode-chdlc.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-chdlc.h"
#include "decode-events.h"
#include "util-unittest.h"
#include "util-debug.h"
Include dependency graph for decode-chdlc.c:

Go to the source code of this file.

Functions

int DecodeCHDLC (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len)
 
void DecodeCHDLCRegisterTests (void)
 Registers Ethernet unit tests. More...
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Decode Cisco HDLC

Definition in file decode-chdlc.c.

Function Documentation

◆ DecodeCHDLC()

int DecodeCHDLC ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint32_t  len 
)

Definition at line 41 of file decode-chdlc.c.

References CHDLC_HEADER_LEN, CHDLC_PKT_TOO_SMALL, DecodeThreadVars_::counter_chdlc, dtv, ENGINE_SET_INVALID_EVENT, len, CHDLCHdr_::protocol, SCLogDebug, SCNtohs, StatsIncr(), TM_ECODE_FAILED, tv, and unlikely.

Referenced by ValidateLinkType().

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

◆ DecodeCHDLCRegisterTests()

void DecodeCHDLCRegisterTests ( void  )

Registers Ethernet unit tests.

Todo:
More Ethernet tests

Definition at line 103 of file decode-chdlc.c.

References UtRegisterTest().

Here is the call graph for this function: