diff options
| author | Michael Brown | 2007-07-08 15:11:07 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-07-08 15:11:07 +0200 |
| commit | b34d4d044978714abe771ca8d7d07153ad048d82 (patch) | |
| tree | 017d6c4e37f0bc49df6ae461074a41691e08013f /src/net/udp | |
| parent | Kill off unused request() method in data-xfer interface. (diff) | |
| download | ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.tar.gz ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.tar.xz ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.zip | |
Separate the "is data ready" function of xfer_seek() into an
xfer_window() function, which can return a scalar rather than a
boolean.
Diffstat (limited to 'src/net/udp')
| -rw-r--r-- | src/net/udp/dhcp.c | 1 | ||||
| -rw-r--r-- | src/net/udp/dns.c | 1 | ||||
| -rw-r--r-- | src/net/udp/tftp.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 5a8203a19..26059341c 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -722,6 +722,7 @@ static struct xfer_interface_operations dhcp_xfer_operations = { .close = ignore_xfer_close, .vredirect = xfer_vopen, .seek = ignore_xfer_seek, + .window = unlimited_xfer_window, .deliver_iob = xfer_deliver_as_raw, .deliver_raw = dhcp_deliver_raw, }; diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c index 76d5dd7a1..aab9cfc27 100644 --- a/src/net/udp/dns.c +++ b/src/net/udp/dns.c @@ -433,6 +433,7 @@ static struct xfer_interface_operations dns_socket_operations = { .close = dns_xfer_close, .vredirect = xfer_vopen, .seek = ignore_xfer_seek, + .window = unlimited_xfer_window, .alloc_iob = default_xfer_alloc_iob, .deliver_iob = xfer_deliver_as_raw, .deliver_raw = dns_xfer_deliver_raw, diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index 03a51f9a2..106c70475 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -583,6 +583,7 @@ static struct xfer_interface_operations tftp_socket_operations = { .close = tftp_socket_close, .vredirect = xfer_vopen, .seek = ignore_xfer_seek, + .window = unlimited_xfer_window, .alloc_iob = default_xfer_alloc_iob, .deliver_iob = tftp_socket_deliver_iob, .deliver_raw = xfer_deliver_as_iob, @@ -609,6 +610,7 @@ static struct xfer_interface_operations tftp_xfer_operations = { .close = tftp_xfer_close, .vredirect = ignore_xfer_vredirect, .seek = ignore_xfer_seek, + .window = unlimited_xfer_window, .alloc_iob = default_xfer_alloc_iob, .deliver_iob = xfer_deliver_as_raw, .deliver_raw = ignore_xfer_deliver_raw, |
