suricata
decode-tcp.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-tcp.h"
#include "decode-events.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "util-optimize.h"
#include "flow.h"
#include "util-profiling.h"
#include "pkt-var.h"
#include "host.h"
Include dependency graph for decode-tcp.c:

Go to the source code of this file.

#define SET_OPTS(dst, src)
 
int DecodeTCP (ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint16_t len)
 
void DecodeTCPRegisterTests (void)
 

Detailed Description

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

Decode TCP

Definition in file decode-tcp.c.

Macro Definition Documentation

◆ SET_OPTS

#define SET_OPTS (   dst,
  src 
)
Value:
(dst).type = (src).type; \
(dst).len = (src).len; \
(dst).data = (src).data

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

Function Documentation

◆ DecodeTCP()

int DecodeTCP ( ThreadVars tv,
DecodeThreadVars dtv,
Packet p,
const uint8_t *  pkt,
uint16_t  len 
)

Definition at line 234 of file decode-tcp.c.

References DecodeThreadVars_::counter_tcp, dtv, StatsIncr(), tv, and unlikely.

Here is the call graph for this function:

◆ DecodeTCPRegisterTests()

void DecodeTCPRegisterTests ( void  )

Definition at line 553 of file decode-tcp.c.

References UtRegisterTest().

Here is the call graph for this function:
len
uint8_t len
Definition: app-layer-dnp3.h:4
type
uint8_t type
Definition: decode-icmpv4.h:2
src
uint16_t src
Definition: app-layer-dnp3.h:7
dst
uint16_t dst
Definition: app-layer-dnp3.h:6