Add route() function to display routing table.

This commit is contained in:
Michael Brown
2007-01-10 20:38:20 +00:00
parent 78ded6604a
commit d9ba8f790b
6 changed files with 85 additions and 33 deletions

View File

@@ -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" );