summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2007-01-10 21:38:20 +0100
committerMichael Brown2007-01-10 21:38:20 +0100
commitd9ba8f790b2b0ad7e22b96e46dc5e0946815e512 (patch)
tree21c185a7baf98f25fc00b2803b90903926e0f0df /src/tests
parentTry booting from the "boot" network device first (i.e. the one which we (diff)
downloadipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.tar.gz
ipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.tar.xz
ipxe-d9ba8f790b2b0ad7e22b96e46dc5e0946815e512.zip
Add route() function to display routing table.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/dhcptest.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c
index 525c1073..318ce5e8 100644
--- a/src/tests/dhcptest.c
+++ b/src/tests/dhcptest.c
@@ -236,10 +236,6 @@ int test_dhcp ( struct net_device *netdev ) {
find_global_dhcp_ipv4_option ( DHCP_SUBNET_MASK, &netmask );
find_global_dhcp_ipv4_option ( DHCP_ROUTERS, &gateway );
- printf ( "IP %s", inet_ntoa ( address ) );
- printf ( " netmask %s", inet_ntoa ( netmask ) );
- printf ( " gateway %s\n", inet_ntoa ( gateway ) );
-
dhcp_snprintf ( filename, sizeof ( filename ),
find_global_dhcp_option ( DHCP_BOOTFILE_NAME ) );
@@ -251,6 +247,8 @@ int test_dhcp ( struct net_device *netdev ) {
gateway ) ) != 0 )
goto out_no_del_ipv4;
+ route();
+
/* Test boot */
if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) {
printf ( "Boot failed\n" );