From 451a320920c6e2f60445938aa98d4fe817c3d36a Mon Sep 17 00:00:00 2001 From: Mosder Date: Tue, 15 Sep 2026 15:52:47 +0200 Subject: formatting: run codebase through new .clang-format --- analyzer/utils/tcp.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'analyzer/utils/tcp.h') 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 -#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 -- cgit v1.2.3