diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-07-02 12:12:16 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-09-03 21:21:14 +0100 |
commit | 364b92521ad19051083db605de3b8a058374e096 (patch) | |
tree | 14d3d80d6f7563fc12be91826e03534818ce0cd2 /src/arch/i386/interface/pxe | |
parent | b0eacbd42166982e675e3467393a2e63fdb99111 (diff) | |
download | ipxe-364b92521ad19051083db605de3b8a058374e096.tar.gz |
[xfer] Generalise metadata "whence" field to "flags" field
iPXE has never supported SEEK_END; the usage of "whence" offers only
the options of SEEK_SET and SEEK_CUR and so is effectively a boolean
flag. Further flags will be required to support additional metadata
required by the Fibre Channel network model, so repurpose the "whence"
field as a generic "flags" field.
xfer_seek() has always been used with SEEK_SET, so remove the "whence"
field altogether from its argument list.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/interface/pxe')
-rw-r--r-- | src/arch/i386/interface/pxe/pxe_tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_tftp.c b/src/arch/i386/interface/pxe/pxe_tftp.c index 7eaa63e5..7f0af7a6 100644 --- a/src/arch/i386/interface/pxe/pxe_tftp.c +++ b/src/arch/i386/interface/pxe/pxe_tftp.c @@ -85,7 +85,7 @@ static int pxe_tftp_xfer_deliver ( struct pxe_tftp_connection *pxe_tftp, int rc = 0; /* Calculate new buffer position */ - if ( meta->whence != SEEK_CUR ) + if ( meta->flags & XFER_FL_ABS_OFFSET ) pxe_tftp->offset = 0; pxe_tftp->offset += meta->offset; |