]>
git.proxmox.com Git - mirror_qemu.git/blob - net/colo.h
2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO)
3 * (a.k.a. Fault Tolerance or Continuous Replication)
5 * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
6 * Copyright (c) 2016 FUJITSU LIMITED
7 * Copyright (c) 2016 Intel Corporation
9 * Author: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
11 * This work is licensed under the terms of the GNU GPL, version 2 or
12 * later. See the COPYING file in the top-level directory.
15 #ifndef QEMU_COLO_PROXY_H
16 #define QEMU_COLO_PROXY_H
18 #include "slirp/slirp.h"
19 #include "qemu/jhash.h"
21 #define HASHTABLE_MAX_SIZE 16384
23 typedef struct Packet
{
26 uint8_t *network_header
;
29 uint8_t *transport_header
;
33 int parse_packet_early(Packet
*pkt
);
34 void connection_hashtable_reset(GHashTable
*connection_track_table
);
35 Packet
*packet_new(const void *data
, int size
);
36 void packet_destroy(void *opaque
, void *user_data
);
38 #endif /* QEMU_COLO_PROXY_H */