浏览代码

[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 年前
父节点
当前提交
bb36f3d7dc
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      src/net/udp.c

+ 3
- 4
src/net/udp.c 查看文件

@@ -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 */

正在加载...
取消
保存