From 60b2ba6ef9ed779d750958b6422f05c93a4a2d91 Mon Sep 17 00:00:00 2001 From: sr Date: Mon, 3 Sep 2012 21:00:26 +0200 Subject: [SERVER] Check which dnbd3 devices are idle and ready to use for proxy mode [SERVER] Skeleton of server-to-server communication [SERVER] Update access-time of images in use by actual clients [*] Add dnbd3_host_t type to handle address+port+addrtype consistently across the project --- src/kernel/dnbd3.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/kernel/dnbd3.h') diff --git a/src/kernel/dnbd3.h b/src/kernel/dnbd3.h index fb83575..e7911cf 100644 --- a/src/kernel/dnbd3.h +++ b/src/kernel/dnbd3.h @@ -35,11 +35,9 @@ extern int major; typedef struct { + dnbd3_host_t host; unsigned long rtts[4]; // Last four round trip time measurements in µs - uint16_t port; // Port in network representation uint16_t protocol_version; // dnbd3 protocol version of this server - uint8_t hostaddr[16]; // Address in network representation (IPv4 or IPv6) - uint8_t hostaddrtype; // Address type (AF_INET or AF_INET6) uint8_t failures; // How many times the server was unreachable } dnbd3_server_t; -- cgit v1.2.3-55-g7522