suricata
decode-tcp.c File Reference
#include "suricata-common.h"
#include "decode-tcp.h"
#include "decode.h"
#include "decode-events.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "util-optimize.h"
#include "flow.h"
#include "util-unittest-helper.h"
#include "packet.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 43 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 248 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 579 of file decode-tcp.c.

References UtRegisterTest().

Here is the call graph for this function:
len
uint8_t len
Definition: app-layer-dnp3.h:2
type
uint16_t type
Definition: decode-vlan.c:107
src
uint16_t src
Definition: app-layer-dnp3.h:5
dst
uint16_t dst
Definition: app-layer-dnp3.h:4