mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
Add "name" field to network device, to facilitate netdev commands.
This commit is contained in:
@@ -36,7 +36,7 @@ int test_aoeboot ( struct net_device *netdev, const char *aoename,
|
||||
int rc;
|
||||
|
||||
printf ( "Attempting to boot from AoE device %s via %s\n",
|
||||
aoename, netdev_name ( netdev ) );
|
||||
aoename, netdev->name );
|
||||
|
||||
if ( ( rc = aoe_parse ( aoename, &test_aoedev.aoe ) ) != 0 ) {
|
||||
printf ( "Invalid AoE device name \"%s\"\n", aoename );
|
||||
|
||||
@@ -224,7 +224,7 @@ int test_dhcp ( struct net_device *netdev ) {
|
||||
goto out_no_del_ipv4;
|
||||
|
||||
/* Issue DHCP request */
|
||||
printf ( "DHCP (%s)...", netdev_name ( netdev ) );
|
||||
printf ( "DHCP (%s)...", netdev->name );
|
||||
memset ( &dhcp, 0, sizeof ( dhcp ) );
|
||||
dhcp.netdev = netdev;
|
||||
if ( ( rc = async_wait ( start_dhcp ( &dhcp ) ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user