|
suricata
|
#include "suricata-common.h"

Go to the source code of this file.
Functions | |
| int | StreamTcpSackUpdatePacket (TcpStream *, Packet *) |
| Update stream with SACK records from a TCP packet. | |
| bool | StreamTcpSackPacketIsOutdated (TcpStream *stream, Packet *p) |
| void | StreamTcpSackPruneList (TcpStream *) |
| void | StreamTcpSackFreeList (TcpStream *) |
| Free SACK tree from a stream. | |
| void | StreamTcpSackRegisterTests (void) |
Definition in file stream-tcp-sack.h.
| void StreamTcpSackFreeList | ( | TcpStream * | stream | ) |
Free SACK tree from a stream.
| stream | Stream to cleanup |
Definition at line 438 of file stream-tcp-sack.c.
References StreamTcpSackRecord::le, RB_FOREACH_SAFE, StreamTcpSackRecord::re, TcpStream_::sack_size, TcpStream_::sack_tree, SCEnter, and SCReturn.
Referenced by StreamTcpStreamCleanup().

Definition at line 357 of file stream-tcp-sack.c.
References TcpStream_::last_ack, TCPOptSackRecord_::le, StreamTcpSackRecord::le, TCPOptSackRecord_::re, StreamTcpSackRecord::re, TcpStream_::sack_tree, SCLogDebug, SCNtohl, TCP_GET_SACK_CNT, and TCP_GET_SACK_PTR.
| void StreamTcpSackPruneList | ( | TcpStream * | stream | ) |
Definition at line 403 of file stream-tcp-sack.c.
References TcpStream_::last_ack, StreamTcpSackRecord::le, RB_FOREACH_SAFE, StreamTcpSackRecord::re, TcpStream_::sack_size, TcpStream_::sack_tree, SCEnter, SCLogDebug, SCReturn, and SEQ_LT.
Referenced by StreamTcpSackUpdatePacket().

| void StreamTcpSackRegisterTests | ( | void | ) |
Definition at line 910 of file stream-tcp-sack.c.
References UtRegisterTest().
Referenced by StreamTcpRegisterTests().


Update stream with SACK records from a TCP packet.
| stream | The stream to update. |
| p | packet to get the SACK records from |
| -1 | error |
| 0 | ok |
Definition at line 249 of file stream-tcp-sack.c.
References TcpStream_::last_ack, TCPOptSackRecord_::le, StreamTcpSackRecord::le, next, TcpStream_::next_win, Packet_::pcap_cnt, TCPOptSackRecord_::re, StreamTcpSackRecord::re, SCEnter, SCLogDebug, SCNtohl, SCReturnInt, SEQ_GEQ, SEQ_GT, SEQ_LEQ, SEQ_LT, STREAM_PKT_FLAG_DSACK, STREAM_PKT_FLAG_SET, StreamTcpSackPruneList(), TCP_GET_RAW_ACK, TCP_GET_SACK_CNT, and TCP_GET_SACK_PTR.
