This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Stopping and restarting Ethernet LAN
- From: Geoff Patch <grp at cea dot com dot au>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 21 Feb 2002 14:29:59 +1100
- Subject: [ECOS] Stopping and restarting Ethernet LAN
Hi Folks,
I'd like to be able to stop and restart the ethernet interface to my board.
I know that the ethernet driver provides functions for doing this, but I'm
unsure what the correct technique is for accessing those functions from my
application code.
At the moment, it looks like I need to search through the network device
table until I find the interface named "eth0", and then access the driver
functions through the device_instance field of the cyg_netdevtab_entry_t
struct. Is this correct, or is there any easier way to do it? I have the
feeling that I might have got bogged down in the details of the driver and
missed something obvious.
Thanks in Advance
Geoff
------------------------------
Geoff Patch
Senior Software Engineer
CEA Technologies
Canberra Australia
02-6213 0141
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss