summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorsr2012-09-03 15:27:36 +0200
committersr2012-09-03 15:27:36 +0200
commita55be46ec7a281f5c3d41d48edf32e57ef5e4ba1 (patch)
treed375eaf63e03a6e1b5e199712735a68b448c6d97 /src/types.h
parent[SERVER] Add list of trusted servers and namespaces (load, display) (diff)
downloaddnbd3-a55be46ec7a281f5c3d41d48edf32e57ef5e4ba1.tar.gz
dnbd3-a55be46ec7a281f5c3d41d48edf32e57ef5e4ba1.tar.xz
dnbd3-a55be46ec7a281f5c3d41d48edf32e57ef5e4ba1.zip
[*] Fixed and unified formatting
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/types.h b/src/types.h
index 72449da..d41111a 100644
--- a/src/types.h
+++ b/src/types.h
@@ -63,14 +63,14 @@ static const uint16_t dnbd3_packet_magic = (0x73) | (0x72 << 8);
typedef struct
{
uint16_t len;
- uint8_t addrtype;
- uint8_t addr[16]; // network representation
- uint16_t port; // network representation
- uint16_t imgnamelen;
- char *imgname;
- int rid;
- int read_ahead_kb;
- uint8_t is_server; // FALSE = automatic (real client), TRUE = manual control (proxy)
+ uint8_t addrtype;
+ uint8_t addr[16]; // network representation
+ uint16_t port; // network representation
+ uint16_t imgnamelen;
+ char *imgname;
+ int rid;
+ int read_ahead_kb;
+ uint8_t is_server; // FALSE = automatic (real client), TRUE = manual control (proxy)
} dnbd3_ioctl_t;
// network
@@ -86,10 +86,10 @@ typedef struct
typedef struct
{
uint16_t magic; // 2byte
- uint16_t cmd; // 2byte
- uint32_t size; // 4byte
- uint64_t offset; // 8byte
- uint64_t handle; // 8byte
+ uint16_t cmd; // 2byte
+ uint32_t size; // 4byte
+ uint64_t offset; // 8byte
+ uint64_t handle; // 8byte
} dnbd3_request_t;
#pragma pack(0)
@@ -97,9 +97,9 @@ typedef struct
typedef struct
{
uint16_t magic; // 2byte
- uint16_t cmd; // 2byte
- uint32_t size; // 4byte
- uint64_t handle; // 8byte
+ uint16_t cmd; // 2byte
+ uint32_t size; // 4byte
+ uint64_t handle; // 8byte
} dnbd3_reply_t;
#pragma pack(0)