Searched refs:initpkt (Results 1 – 1 of 1) sorted by relevance
363 struct nbd_init_packet initpkt; in nbd_connect() local386 err = krecv(dev->sock, &initpkt, sizeof(initpkt), 0); in nbd_connect()389 if (err < (status_t)sizeof(initpkt)) in nbd_connect()392 if (memcmp(initpkt.passwd, NBD_INIT_PASSWD, sizeof(initpkt.passwd))) in nbd_connect()394 if (B_BENDIAN_TO_HOST_INT64(initpkt.magic) != NBD_INIT_MAGIC) in nbd_connect()397 dev->size = B_BENDIAN_TO_HOST_INT64(initpkt.device_size); in nbd_connect()