10 typedef struct sTCPHeader tTCPHeader;
11 typedef struct sTCPListener tTCPListener;
12 typedef struct sTCPConnection tTCPConnection;
18 Uint32 SequenceNumber;
19 Uint32 AcknowlegementNumber;
23 unsigned DataOffset: 4; // Size of the header in 32-bit words
24 } __attribute__ ((packed));
29 struct { // Lowest to Highest
30 unsigned FIN: 1; // Last packet
31 unsigned SYN: 1; // Synchronise Sequence Numbers
32 unsigned RST: 1; // Reset Connection
33 unsigned PSH: 1; // Push Function
34 unsigned ACK: 1; // Acknowlegement field is significant
35 unsigned URG: 1; // Urgent pointer is significant
36 unsigned ECE: 1; // ECN-Echo
37 unsigned CWR: 1; // Congestion Window Reduced
38 } __attribute__ ((packed)) Flags;
48 } __attribute__ ((packed));
64 struct sTCPListener *Next;
66 tInterface *Interface;
69 tTCPConnection *Connections;
74 struct sTCPConnection *Next;
96 tInterface *Interface;
100 } RemoteIP; // Type is determined by LocalInterface->Type
103 enum eTCPConnectionState