old netservices
Fork of NetServices by
Diff: drv/eth/eth_drv.cpp
- Revision:
- 4:966a0265edfc
- Parent:
- 0:ac1725ba162c
--- a/drv/eth/eth_drv.cpp Fri Nov 19 21:01:51 2010 +0000 +++ b/drv/eth/eth_drv.cpp Sun Nov 21 17:13:44 2010 +0000 @@ -185,7 +185,7 @@ netif->output = etharp_output; netif->linkoutput = eth_output; - pEth = new Ethernet(); + if (!pEth) pEth = new Ethernet(); // only create Ethernet object if required return ERR_OK; } @@ -201,6 +201,10 @@ pEth->address(mac); } +Ethernet* eth_interface() { + return pEth; +} + #ifdef __cplusplus }; #endif