summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMichael Brown2006-06-18 00:36:27 +0200
committerMichael Brown2006-06-18 00:36:27 +0200
commit3c8aafa2099c13799fdb4f42d06f1abd278b14f7 (patch)
treedda612574bf0c128cc58ff4f7231b73f019f8e2b /src/core/main.c
parentRemove dependency on arptable[] (which is no longer used). (diff)
downloadipxe-3c8aafa2099c13799fdb4f42d06f1abd278b14f7.tar.gz
ipxe-3c8aafa2099c13799fdb4f42d06f1abd278b14f7.tar.xz
ipxe-3c8aafa2099c13799fdb4f42d06f1abd278b14f7.zip
Simplify RX data path.
Kill off the static single net device and move to proper dynamic registration (which we need with the new device model). Break the (flawed) assumption that all network-layer protocols can use ARP; such network-layer protocols (i.e. IPv4) must now register as an ARP protocol using ARP_NET_PROTOCOL() and provide a single method for checking the existence of a local network-layer address.
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 71300a85..e2b6ae82 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -145,9 +145,6 @@ static int exit_status;
static int initialized;
-extern struct net_device static_single_netdev;
-
-
/**************************************************************************
MAIN - Kick off routine
**************************************************************************/
@@ -159,13 +156,9 @@ int main ( void ) {
call_init_fns ();
probe_devices();
- /* Quick hack until netdevice.c uses proper dynamic registration */
- netdev = &static_single_netdev;
- if ( ! netdev->poll )
- netdev = NULL;
-
+ netdev = next_netdev ();
if ( netdev ) {
- test_aoeboot ( &static_single_netdev );
+ test_aoeboot ( netdev );
} else {
printf ( "No network device found\n" );
}