summaryrefslogtreecommitdiffstats
path: root/src/net/tcp
diff options
context:
space:
mode:
authorMichael Brown2010-07-02 13:12:16 +0200
committerMichael Brown2010-09-03 22:21:14 +0200
commit364b92521ad19051083db605de3b8a058374e096 (patch)
tree14d3d80d6f7563fc12be91826e03534818ce0cd2 /src/net/tcp
parent[eepro100] Add new PCI ID 8086:27dc (diff)
downloadipxe-364b92521ad19051083db605de3b8a058374e096.tar.gz
ipxe-364b92521ad19051083db605de3b8a058374e096.tar.xz
ipxe-364b92521ad19051083db605de3b8a058374e096.zip
[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/net/tcp')
-rw-r--r--src/net/tcp/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c
index 3b59ed9f2..20f14e680 100644
--- a/src/net/tcp/http.c
+++ b/src/net/tcp/http.c
@@ -223,8 +223,8 @@ static int http_rx_content_length ( struct http_request *http,
}
/* Use seek() to notify recipient of filesize */
- xfer_seek ( &http->xfer, http->content_length, SEEK_SET );
- xfer_seek ( &http->xfer, 0, SEEK_SET );
+ xfer_seek ( &http->xfer, http->content_length );
+ xfer_seek ( &http->xfer, 0 );
return 0;
}