diff options
author | Michael Brown | 2007-01-10 03:37:23 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-10 03:37:23 +0100 |
commit | 649b789e937b3a6f1a0c3b76049cb442c519d49c (patch) | |
tree | 03080ce5732f0ad7e63fe4333a536f06a7e42c60 /src/tests | |
parent | Add udp_sendto_via() to allow e.g. DHCP to transmit without first having (diff) | |
download | ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.tar.gz ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.tar.xz ipxe-649b789e937b3a6f1a0c3b76049cb442c519d49c.zip |
DHCP transmits via specified net device, so no need to create a dummy
routing table entry just to fool ipv4.c any more.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/dhcptest.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index d6b19927..525c1073 100644 --- a/src/tests/dhcptest.c +++ b/src/tests/dhcptest.c @@ -218,11 +218,6 @@ int test_dhcp ( struct net_device *netdev ) { char filename[256]; int rc; - /* Bring IP interface up with address 0.0.0.0 */ - if ( ( rc = add_ipv4_address ( netdev, address, netmask, - gateway ) ) != 0 ) - goto out_no_del_ipv4; - /* Issue DHCP request */ printf ( "DHCP (%s)...", netdev->name ); memset ( &dhcp, 0, sizeof ( dhcp ) ); @@ -251,9 +246,6 @@ int test_dhcp ( struct net_device *netdev ) { if ( filename[0] ) printf ( "Bootfile name \"%s\"\n", filename ); - /* Remove old IP address configuration */ - del_ipv4_address ( netdev ); - /* Set up new IP address configuration */ if ( ( rc = add_ipv4_address ( netdev, address, netmask, gateway ) ) != 0 ) |