proxy: Respect the REQUEST_MASK

This commit is contained in:
nick
2013-06-19 11:18:22 +01:00
parent 62bdad2a6e
commit 1afea5c73d
2 changed files with 9 additions and 5 deletions

View File

@@ -11,6 +11,10 @@
#define REQUEST_WRITE 1
#define REQUEST_DISCONNECT 2
/* The top 2 bytes of the type field are overloaded and can contain flags */
#define REQUEST_MASK 0x0000ffff
/* 1MiB is the de-facto standard for maximum size of header + data */
#define NBD_MAX_SIZE ( 1024 * 1024 )