From 286bf68faf8c712c1d5a9fd5dbedbcf142fb8cb5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 5 Jun 2006 15:45:21 +0000 Subject: Added a very quick and dirty compatibility layer, to allow not-yet-updated drivers to at least function. --- src/core/nic.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/core') diff --git a/src/core/nic.c b/src/core/nic.c index 64e87f614..0382ced2d 100644 --- a/src/core/nic.c +++ b/src/core/nic.c @@ -388,6 +388,7 @@ struct type_driver nic_driver = { .load = nic_load, }; +#if 0 /* Careful. We need an aligned buffer to avoid problems on machines * that care about alignment. To trivally align the ethernet data * (the ip hdr and arp requests) we offset the packet by 2 bytes. @@ -400,17 +401,9 @@ struct nic nic = { .node_addr = arptable[ARP_CLIENT].node, .packet = packet + ETH_DATA_ALIGN, }; +#endif - -int dummy_connect ( struct nic *nic __unused ) { - return 1; -} - -void dummy_irq ( struct nic *nic __unused, irq_action_t irq_action __unused ) { - return; -} - /************************************************************************** DEFAULT_NETMASK - Return default netmask for IP address **************************************************************************/ -- cgit v1.2.3-55-g7522