mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 10:01:03 +03:00
Add route() function to display routing table.
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user