소스 검색

[http] Pass through unknown interface method calls

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 년 전
부모
커밋
b707f15ecb
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    2
      src/net/tcp/http.c

+ 4
- 2
src/net/tcp/http.c 파일 보기

@@ -473,7 +473,8 @@ static struct interface_operation http_socket_operations[] = {
473 473
 
474 474
 /** HTTP socket interface descriptor */
475 475
 static struct interface_descriptor http_socket_desc =
476
-	INTF_DESC ( struct http_request, socket, http_socket_operations );
476
+	INTF_DESC_PASSTHRU ( struct http_request, socket,
477
+			     http_socket_operations, xfer );
477 478
 
478 479
 /** HTTP data transfer interface operations */
479 480
 static struct interface_operation http_xfer_operations[] = {
@@ -482,7 +483,8 @@ static struct interface_operation http_xfer_operations[] = {
482 483
 
483 484
 /** HTTP data transfer interface descriptor */
484 485
 static struct interface_descriptor http_xfer_desc =
485
-	INTF_DESC ( struct http_request, xfer, http_xfer_operations );
486
+	INTF_DESC_PASSTHRU ( struct http_request, xfer,
487
+			     http_xfer_operations, socket );
486 488
 
487 489
 /**
488 490
  * Initiate an HTTP connection, with optional filter

Loading…
취소
저장