EmbeddedRelated.com
Forums
Memfault Beyond the Launch

test ethernet driver without TCP/IP stack(sending raw ethernet packect with PC)

Started by naderus2000 December 4, 2007
Hi,
If I want to write new ethernet driver for a new device I need a PC
terminal software that can test my driver code with it before dealing
with TCP/IP stack.
I search a lot but can't found any software for testing my ethernet
driver with out TCP/IP stack(sending raw ethernet packect).

with etherial I can only see what the device send but casn't send any
thing.

please tell me how can I test my code?

thanks.

An Engineer's Guide to the LPC2100 Series

naderus2000 wrote:
> Hi,
> If I want to write new ethernet driver for a new device I need a PC
> terminal software that can test my driver code with it before dealing
> with TCP/IP stack.
> I search a lot but can't found any software for testing my ethernet
> driver with out TCP/IP stack(sending raw ethernet packect).
>
> with etherial I can only see what the device send but casn't send any
> thing.
>
> please tell me how can I test my code?

Look at the TUN/TAP driver under Linux. There are windows
versions too.

In Linux, there is a file somewhere in the documentation
folder. A Google search for TUN/TAP driver will probably
get you started.

If I recall correctly, the LwIP examples under Linux use the
TUN/TAP interface.

Cheers,
Dave

Memfault Beyond the Launch