Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the handshake correct? #35

Open
akiradeveloper opened this issue Dec 13, 2020 · 0 comments
Open

Is the handshake correct? #35

akiradeveloper opened this issue Dec 13, 2020 · 0 comments

Comments

@akiradeveloper
Copy link

https://github.com/NetworkBlockDevice/nbd/blob/master/doc/proto.md

I think buse uses oldstyle negotiation and the spec says server sends these five data.

S: 64 bits, 0x4e42444d41474943 (ASCII 'NBDMAGIC') (also known as the INIT_PASSWD)
S: 64 bits, 0x00420281861253 (cliserv_magic, a magic number)
S: 64 bits, size of the export in bytes (unsigned)
S: 32 bits, flags
S: 124 bytes, zeroes (reserved).

But buse's server sends only NBDMAGIC. How can client handshakes with the server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant