diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-07-08 14:11:07 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-07-08 14:11:07 +0100 |
commit | b34d4d044978714abe771ca8d7d07153ad048d82 (patch) | |
tree | 017d6c4e37f0bc49df6ae461074a41691e08013f /src/net/udp | |
parent | ca4c6f9eee896ef70b676096131559dfd51970dc (diff) | |
download | ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.tar.gz |
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 5a8203a1..26059341 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 76d5dd7a..aab9cfc2 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 03a51f9a..106c7047 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, |