|
@@ -218,11 +218,6 @@ int test_dhcp ( struct net_device *netdev ) {
|
218
|
218
|
char filename[256];
|
219
|
219
|
int rc;
|
220
|
220
|
|
221
|
|
- /* Bring IP interface up with address 0.0.0.0 */
|
222
|
|
- if ( ( rc = add_ipv4_address ( netdev, address, netmask,
|
223
|
|
- gateway ) ) != 0 )
|
224
|
|
- goto out_no_del_ipv4;
|
225
|
|
-
|
226
|
221
|
/* Issue DHCP request */
|
227
|
222
|
printf ( "DHCP (%s)...", netdev->name );
|
228
|
223
|
memset ( &dhcp, 0, sizeof ( dhcp ) );
|
|
@@ -251,9 +246,6 @@ int test_dhcp ( struct net_device *netdev ) {
|
251
|
246
|
if ( filename[0] )
|
252
|
247
|
printf ( "Bootfile name \"%s\"\n", filename );
|
253
|
248
|
|
254
|
|
- /* Remove old IP address configuration */
|
255
|
|
- del_ipv4_address ( netdev );
|
256
|
|
-
|
257
|
249
|
/* Set up new IP address configuration */
|
258
|
250
|
if ( ( rc = add_ipv4_address ( netdev, address, netmask,
|
259
|
251
|
gateway ) ) != 0 )
|