]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - nbd/nbd-internal.h
nbd/server: Prepare to receive extended header requests
[thirdparty/qemu.git] / nbd / nbd-internal.h
index 133b1d94b50d94ac854304330cc1d451eb3b9068..dfa02f77ee487ce0a6168a49f8d6d9e5cdd5ac73 100644 (file)
  * https://github.com/yoe/nbd/blob/master/doc/proto.md
  */
 
-/* Size of all NBD_OPT_*, without payload */
+/* Size of all compact NBD_CMD_*, without payload */
 #define NBD_REQUEST_SIZE            (4 + 2 + 2 + 8 + 8 + 4)
+/* Size of all extended NBD_CMD_*, without payload */
+#define NBD_EXTENDED_REQUEST_SIZE   (4 + 2 + 2 + 8 + 8 + 8)
+
 /* Size of all NBD_REP_* sent in answer to most NBD_OPT_*, without payload */
 #define NBD_REPLY_SIZE              (4 + 4 + 8)
 /* Size of reply to NBD_OPT_EXPORT_NAME */