struct rpc_t rpc_pkt;
int rlen;
uchar *data_ptr;
+ int offset = nfs_offset - net_boot_file_offset;
debug("%s\n", __func__);
return -ntohl(rpc_pkt.u.reply.data[0]);
}
- if ((nfs_offset != 0) && !((nfs_offset) %
+ if ((offset != 0) && !((offset) %
(NFS_READ_SIZE / 2 * 256 * HASHES_PER_LINE)))
puts("\n\t ");
- if (!(nfs_offset % ((NFS_READ_SIZE / 2) * 256)))
+ if (!(offset % ((NFS_READ_SIZE / 2) * 256)))
putc('#');
if (supported_nfs_versions & NFSV2_FLAG) {
if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len)
return -9999;
- if (store_block(data_ptr, nfs_offset - net_boot_file_offset, rlen))
+ if (store_block(data_ptr, offset, rlen))
return -9999;
return rlen;
printf("; sending through gateway %pI4",
&net_gateway);
}
- printf("\nFilename '%s/%s'.", nfs_path, nfs_filename);
+ printf("\nFilename '%s/%s', offset %u.", nfs_path, nfs_filename,
+ net_boot_file_offset);
if (net_boot_file_expected_size_in_blocks) {
printf(" Size is 0x%x Bytes = ",