From e74e20cb5599e646ec3f29e019a59fcce0b4ebb4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 20 Jul 2006 02:51:52 +0000 Subject: Remove the static IP address hack from netdevice.c, and change the default test to the DHCP test. --- src/net/netdevice.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/net') diff --git a/src/net/netdevice.c b/src/net/netdevice.c index 1197e66cd..825613cc8 100644 --- a/src/net/netdevice.c +++ b/src/net/netdevice.c @@ -41,10 +41,6 @@ static struct net_protocol net_protocols_end[0] __table_end ( net_protocols ); /** List of network devices */ static LIST_HEAD ( net_devices ); -#warning "Remove this static IP address hack" -#include -#include - /** * Transmit raw packet via network device * @@ -179,19 +175,6 @@ struct net_device * alloc_netdev ( size_t priv_size ) { */ int register_netdev ( struct net_device *netdev ) { -#warning "Remove this static IP address hack" - { - const struct in_addr static_address = { htonl ( 0x0afefe01 ) }; - const struct in_addr static_netmask = { htonl ( 0xffffff00 ) }; - const struct in_addr static_gateway = { INADDR_NONE }; - int rc; - - if ( ( rc = add_ipv4_address ( netdev, static_address, - static_netmask, - static_gateway ) ) != 0 ) - return rc; - } - /* Add to device list */ list_add_tail ( &netdev->list, &net_devices ); DBG ( "%s registered\n", netdev_name ( netdev ) ); @@ -209,9 +192,6 @@ int register_netdev ( struct net_device *netdev ) { void unregister_netdev ( struct net_device *netdev ) { struct pk_buff *pkb; -#warning "Remove this static IP address hack" - del_ipv4_address ( netdev ); - /* Discard any packets in the RX queue */ while ( ( pkb = netdev_rx_dequeue ( netdev ) ) ) { DBG ( "%s discarding %p+%zx\n", netdev_name ( netdev ), -- cgit v1.2.3-55-g7522