[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] Possible endian error in nbd-server.c: send_reply()



Hi,

I'm trying to get a list of export names from the server so I'm
sending NBD_OPT_LIST (3) and the server replies with an option type of
0x3000000 instead of 3.

I think the problem lies in nbd-server.c:send_reply(). The opt value
given is in host byte order but must be send in network byte order. So
the code is missing a

	opt = htonl(opt);

Right?

MfG
	Goswin



Reply to: