This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Help ! How to do ethernet loopback test in eCos ??
- From: Zi Zhou <zzhou at 3upsystems dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 02 Jul 2003 14:33:33 -0700
- Subject: [ECOS] Help ! How to do ethernet loopback test in eCos ??
- Organization: 3upsystems
Hi,
I am trying to do external loopback test for one of my 2 ethernet MAC
interfaces. So I need to generate an ethernet packet, send it out, and
compare the received packet with the one I just sent out. I need to be
able to access the ethernet driver function. I was thinking of using
cyg_io_lookup() to find my ethernet port and call the API to write/read.
But by going through the discussion list, I realized that I can't use
these API for ethernet device. Seems I can only access ethernet device
through socket() interface. But my loopback test requires that I use
some arbitrary MAC address that's different from the real MAC address of
the port, otherwise the loopbacked ethernet packet will be dropped
because it's the same as the receive port MAC address. Any input is
welcome and greatly appreciated !
thanks !
Zi
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss