|
@@ -41,10 +41,6 @@ static struct net_protocol net_protocols_end[0] __table_end ( net_protocols );
|
41
|
41
|
/** List of network devices */
|
42
|
42
|
static LIST_HEAD ( net_devices );
|
43
|
43
|
|
44
|
|
-#warning "Remove this static IP address hack"
|
45
|
|
-#include <ip.h>
|
46
|
|
-#include <gpxe/ip.h>
|
47
|
|
-
|
48
|
44
|
/**
|
49
|
45
|
* Transmit raw packet via network device
|
50
|
46
|
*
|
|
@@ -179,19 +175,6 @@ struct net_device * alloc_netdev ( size_t priv_size ) {
|
179
|
175
|
*/
|
180
|
176
|
int register_netdev ( struct net_device *netdev ) {
|
181
|
177
|
|
182
|
|
-#warning "Remove this static IP address hack"
|
183
|
|
- {
|
184
|
|
- const struct in_addr static_address = { htonl ( 0x0afefe01 ) };
|
185
|
|
- const struct in_addr static_netmask = { htonl ( 0xffffff00 ) };
|
186
|
|
- const struct in_addr static_gateway = { INADDR_NONE };
|
187
|
|
- int rc;
|
188
|
|
-
|
189
|
|
- if ( ( rc = add_ipv4_address ( netdev, static_address,
|
190
|
|
- static_netmask,
|
191
|
|
- static_gateway ) ) != 0 )
|
192
|
|
- return rc;
|
193
|
|
- }
|
194
|
|
-
|
195
|
178
|
/* Add to device list */
|
196
|
179
|
list_add_tail ( &netdev->list, &net_devices );
|
197
|
180
|
DBG ( "%s registered\n", netdev_name ( netdev ) );
|
|
@@ -209,9 +192,6 @@ int register_netdev ( struct net_device *netdev ) {
|
209
|
192
|
void unregister_netdev ( struct net_device *netdev ) {
|
210
|
193
|
struct pk_buff *pkb;
|
211
|
194
|
|
212
|
|
-#warning "Remove this static IP address hack"
|
213
|
|
- del_ipv4_address ( netdev );
|
214
|
|
-
|
215
|
195
|
/* Discard any packets in the RX queue */
|
216
|
196
|
while ( ( pkb = netdev_rx_dequeue ( netdev ) ) ) {
|
217
|
197
|
DBG ( "%s discarding %p+%zx\n", netdev_name ( netdev ),
|