Bladeren bron

[http] Pass through unknown interface method calls

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 jaren geleden
bovenliggende
commit
b707f15ecb
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4
    2
      src/net/tcp/http.c

+ 4
- 2
src/net/tcp/http.c Bestand weergeven

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

Laden…
Annuleren
Opslaan