]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/colo.h
block/parallels: Avoid overflows
[mirror_qemu.git] / net / colo.h
index 9a7d5e027a08abf9f32d2245b4057c05b7645c23..7c524f3a1cd6a8bf88a3d074406cf46b09282dcb 100644 (file)
@@ -62,12 +62,20 @@ typedef struct Connection {
     /* flag to enqueue unprocessed_connections */
     bool processing;
     uint8_t ip_proto;
+    /* offset = secondary_seq - primary_seq */
+    tcp_seq  offset;
+    /*
+     * we use this flag update offset func
+     * run once in independent tcp connection
+     */
+    int syn_flag;
 } Connection;
 
 uint32_t connection_key_hash(const void *opaque);
 int connection_key_equal(const void *opaque1, const void *opaque2);
 int parse_packet_early(Packet *pkt);
 void fill_connection_key(Packet *pkt, ConnectionKey *key);
+void reverse_connection_key(ConnectionKey *key);
 Connection *connection_new(ConnectionKey *key);
 void connection_destroy(void *opaque);
 Connection *connection_get(GHashTable *connection_track_table,