diff options
| author | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
| commit | 451a320920c6e2f60445938aa98d4fe817c3d36a (patch) | |
| tree | 02e6b7bd9a6e2824ef332b0143c98348ff8c85b3 /analyzer/utils/tcp.h | |
| parent | ad5eb982de97d982bc808ece89903d1113ab9917 (diff) | |
Diffstat (limited to 'analyzer/utils/tcp.h')
| -rw-r--r-- | analyzer/utils/tcp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/analyzer/utils/tcp.h b/analyzer/utils/tcp.h index 55cbf3e..e2906ef 100644 --- a/analyzer/utils/tcp.h +++ b/analyzer/utils/tcp.h @@ -3,8 +3,8 @@ #include <pcap.h> -#include "structures/heap.h" #include "structures/array.h" +#include "structures/heap.h" #ifndef TCP_H #define TCP_H @@ -29,7 +29,8 @@ typedef struct { // - packet_data - metadata about packet // returns: // TCPSegment from packet, payload is NULL if the received packet was incorrect -extern TCPSegment get_segment_from_packet(const byte_t *packet, const struct pcap_pkthdr *packet_data); +extern TCPSegment +get_segment_from_packet(const byte_t *packet, const struct pcap_pkthdr *packet_data); // struct that stores all the information about stream typedef struct { @@ -37,7 +38,7 @@ typedef struct { uint32_t seq; // TCP sequence number of the first byte in the stream uint16_t port; // client port of currently analyzed connection ConnectionSource src; // stream's source - Heap *pending; // min heap of segments yet to be added to stream (sorted by TCP sequence number) + Heap *pending; // min heap of segments yet to be added to stream (sorted by TCP sequence number) } TCPStream; #define INIT_STREAM_CAPACITY 256 |
