summaryrefslogtreecommitdiffstats
path: root/src/tests/dhcptest.c
diff options
context:
space:
mode:
authorMichael Brown2006-08-09 05:00:11 +0200
committerMichael Brown2006-08-09 05:00:11 +0200
commitc9e6c33bba13477fc73ecbded61558e1d2d38793 (patch)
tree11d0c2baa633214ce97c878591e90b331cd7d085 /src/tests/dhcptest.c
parentImplement enough of PXENV_GET_CACHED_INFO to support pxelinux. (diff)
downloadipxe-c9e6c33bba13477fc73ecbded61558e1d2d38793.tar.gz
ipxe-c9e6c33bba13477fc73ecbded61558e1d2d38793.tar.xz
ipxe-c9e6c33bba13477fc73ecbded61558e1d2d38793.zip
Attempt a PXE NBP boot as the TFTP test.
Diffstat (limited to 'src/tests/dhcptest.c')
-rw-r--r--src/tests/dhcptest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c
index 2afe6faf5..47e0e8b48 100644
--- a/src/tests/dhcptest.c
+++ b/src/tests/dhcptest.c
@@ -57,7 +57,7 @@ static int test_dhcp_hello ( char *helloname ) {
return 0;
}
-static int test_dhcp_tftp ( char *tftpname ) {
+static int test_dhcp_tftp ( struct net_device *netdev, char *tftpname ) {
union {
struct sockaddr_in sin;
struct sockaddr_tcpip st;
@@ -69,7 +69,7 @@ static int test_dhcp_tftp ( char *tftpname ) {
find_global_dhcp_ipv4_option ( DHCP_EB_SIADDR,
&target.sin.sin_addr );
- return test_tftp ( &target.st, tftpname );
+ return test_tftp ( netdev, &target.st, tftpname );
}
static int test_dhcp_boot ( struct net_device *netdev, char *filename ) {
@@ -80,7 +80,7 @@ static int test_dhcp_boot ( struct net_device *netdev, char *filename ) {
} else if ( strncmp ( filename, "hello:", 6 ) == 0 ) {
return test_dhcp_hello ( &filename[6] );
} else {
- return test_dhcp_tftp ( filename );
+ return test_dhcp_tftp ( netdev, filename );
}
}