From d9ba8f790b2b0ad7e22b96e46dc5e0946815e512 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 10 Jan 2007 20:38:20 +0000 Subject: Add route() function to display routing table. --- src/tests/dhcptest.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/tests') diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index 525c1073d..318ce5e81 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" ); -- cgit v1.2.3-55-g7522