diff options
author | Michael Brown | 2007-01-10 00:48:18 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-10 00:48:18 +0100 |
commit | 98b6154c3ea76121e942cb14765f05ecd7d7911c (patch) | |
tree | 155cba92d021ae1471001b0e9d128c412dff2795 /src/tests | |
parent | Add RX quotas to the net device poll() method. This avoids the problem (diff) | |
download | ipxe-98b6154c3ea76121e942cb14765f05ecd7d7911c.tar.gz ipxe-98b6154c3ea76121e942cb14765f05ecd7d7911c.tar.xz ipxe-98b6154c3ea76121e942cb14765f05ecd7d7911c.zip |
Add "name" field to network device, to facilitate netdev commands.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/aoeboot.c | 2 | ||||
-rw-r--r-- | src/tests/dhcptest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/aoeboot.c b/src/tests/aoeboot.c index e585731a..9d3013b2 100644 --- a/src/tests/aoeboot.c +++ b/src/tests/aoeboot.c @@ -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 ); diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index 19949ab0..d6b19927 100644 --- a/src/tests/dhcptest.c +++ b/src/tests/dhcptest.c @@ -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 ) { |