nbd: simplify the nbd_request and nbd_reply structs
commit56af2dda98c5d71feb7ff7fcac7269a1071aec62
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Jun 2016 09:42:40 +0000 (13 11:42 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:04 +0000 (16 18:39 +0200)
treee86a89fff1cc742268c66eee38e52892a6ea9a86
parentf6be6720847f370000312808e6fed5d4e9730934
nbd: simplify the nbd_request and nbd_reply structs

These structs are never used to represent the bytes that go over the
network.  The big-endian network data is built into a uint8_t array
in nbd_{receive,send}_{request,reply}.  Remove the unused magic field,
reorder the struct to avoid holes, and remove the packed attribute.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/block/nbd.h