Browse Source

[udp] Propagate transmission errors to UDP interface users

Suggested-by: Simon Rowe <simon.rowe@eu.citrix.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
bb36f3d7dc
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/net/udp.c

+ 3
- 4
src/net/udp.c View File

@@ -386,10 +386,9 @@ static int udp_xfer_deliver ( struct udp_connection *udp,
386 386
 			      struct xfer_metadata *meta ) {
387 387
 
388 388
 	/* Transmit data, if possible */
389
-	udp_tx ( udp, iobuf, ( ( struct sockaddr_tcpip * ) meta->src ),
390
-		 ( ( struct sockaddr_tcpip * ) meta->dest ), meta->netdev );
391
-
392
-	return 0;
389
+	return udp_tx ( udp, iobuf, ( ( struct sockaddr_tcpip * ) meta->src ),
390
+			( ( struct sockaddr_tcpip * ) meta->dest ),
391
+			meta->netdev );
393 392
 }
394 393
 
395 394
 /** UDP data transfer interface operations */

Loading…
Cancel
Save