Add concept of transfer metadata, to be used by UDP in order to

implement sendto()/recvfrom() equivalents.
This commit is contained in:
Michael Brown
2007-06-11 15:04:39 +01:00
parent 77e575235d
commit 95adce0ce1
6 changed files with 54 additions and 13 deletions
+3 -1
View File
@@ -930,10 +930,12 @@ static int tcp_xfer_seek ( struct xfer_interface *xfer, off_t offset,
*
* @v xfer Data transfer interface
* @v iobuf Datagram I/O buffer
* @v meta Data transfer metadata, or NULL
* @ret rc Return status code
*/
static int tcp_xfer_deliver_iob ( struct xfer_interface *xfer,
struct io_buffer *iobuf ) {
struct io_buffer *iobuf,
struct xfer_metadata *meta __unused ) {
struct tcp_connection *tcp =
container_of ( xfer, struct tcp_connection, xfer );