diff options
author | Johann Latocha | 2012-02-02 01:13:50 +0100 |
---|---|---|
committer | Johann Latocha | 2012-02-02 01:13:50 +0100 |
commit | 37e4ed696b77455a738fa948b93498c8740721bc (patch) | |
tree | 14306f376ef7132d2cac1624e3aafa8dbba035b0 /src/types.h | |
parent | [SERVER] Close all client sockets on shutdown (diff) | |
download | dnbd3-37e4ed696b77455a738fa948b93498c8740721bc.tar.gz dnbd3-37e4ed696b77455a738fa948b93498c8740721bc.tar.xz dnbd3-37e4ed696b77455a738fa948b93498c8740721bc.zip |
[SERVER] Parsing config file with glib
[KERNEL] Bugfixes
[CLIENT] Using vid and rid
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/types.h b/src/types.h index 9bc0795..7f5c392 100644 --- a/src/types.h +++ b/src/types.h @@ -27,22 +27,24 @@ #define DNBD3_MAGIC 'd' #define IOCTL_SET_HOST _IO(0xab, 1) #define IOCTL_SET_PORT _IO(0xab, 2) -#define IOCTL_SET_IMAGE _IO(0xab, 3) -#define IOCTL_CONNECT _IO(0xab, 4) -#define IOCTL_DISCONNECT _IO(0xab, 5) +#define IOCTL_SET_VID _IO(0xab, 3) +#define IOCTL_SET_RID _IO(0xab, 4) +#define IOCTL_CONNECT _IO(0xab, 5) +#define IOCTL_DISCONNECT _IO(0xab, 6) // network #define CMD_GET_BLOCK 1 #define CMD_GET_SIZE 2 -#define CMD_PING 3 +#define CMD_PING 3 #pragma pack(1) typedef struct { uint16_t cmd; + uint16_t vid; + uint16_t rid; uint64_t offset; uint64_t size; - char image_id[MAX_FILE_ID]; char handle[8]; } dnbd3_request_t; #pragma pack(0) |