search for: 597620d

Displaying 1 result from an estimated 1 matches for "597620d".

Did you mean: 59620
2019 Sep 25
0
[libnbd PATCH] lib: Synchronize nbd-protocol.h with nbdkit, again
...t flags */ - char zeroes[124]; /* must be sent as zero bytes */ -} NBD_ATTRIBUTE_PACKED; - /* Request (client -> server). */ struct nbd_request { uint32_t magic; /* NBD_REQUEST_MAGIC. */ diff --git a/generator/states-magic.c b/generator/states-magic.c index de8d235..597620d 100644 --- a/generator/states-magic.c +++ b/generator/states-magic.c @@ -35,7 +35,7 @@ MAGIC.CHECK_MAGIC: uint64_t version; - if (strncmp (h->sbuf.new_handshake.nbdmagic, "NBDMAGIC", 8) != 0) { + if (be64toh (h->sbuf.new_handshake.nbdmagic) != NBD_MAGIC) { SET_NEXT_STAT...