Add "name" field to network device, to facilitate netdev commands.

This commit is contained in:
Michael Brown
2007-01-09 23:48:18 +00:00
parent c65fae2475
commit 98b6154c3e
6 changed files with 39 additions and 15 deletions

View File

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

View File

@@ -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 ) {