aboutsummaryrefslogtreecommitdiff
path: root/analyzer/utils/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer/utils/tcp.h')
-rw-r--r--analyzer/utils/tcp.h7
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