Lines Matching defs:hdrp
1334 * Convert the header pointed to by `hdrp' from native (host) to network
1340 nhconvert_header(dn_header_t *hdrp, boolean_t hash)
1345 nhconvert(&hdrp->dnh_network, &hdrp->dnh_network, sizeof (ipaddr_t));
1346 nhconvert(&hdrp->dnh_netmask, &hdrp->dnh_netmask, sizeof (ipaddr_t));
1347 nhconvert(&hdrp->dnh_magic, &hdrp->dnh_magic, sizeof (uint32_t));
1348 nhconvert_rec(&hdrp->dnh_temp);
1352 nhconvert(&hdrp->dnh_cidhash[i][0],
1353 &hdrp->dnh_cidhash[i][0], sizeof (dn_recid_t));
1354 nhconvert(&hdrp->dnh_cidhash[i][1],
1355 &hdrp->dnh_cidhash[i][1], sizeof (dn_recid_t));
1392 * pointed to by `hdrp'; if `hash' is not set, then skip reading the
1397 read_header(int fd, dn_header_t *hdrp, boolean_t hash)
1402 if (pnread(fd, hdrp, size, 0) == -1)
1405 nhconvert_header(hdrp, hash);
1410 * Write the dn_header_t pointed to by `hdrp' into open container `fd'.
1414 write_header(int fd, dn_header_t *hdrp)
1418 nhconvert_header(hdrp, B_TRUE);
1419 retval = pnwrite(fd, hdrp, sizeof (dn_header_t), 0);
1420 nhconvert_header(hdrp, B_TRUE);