This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Re: RedBoot "set MAC address" API?
- From: "Laurie Gellatly" <laurie dot gellatly at netic dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 6 Nov 2006 08:30:51 +1100
- Subject: RE: [ECOS] Re: RedBoot "set MAC address" API?
Hi Grant,
For Redboot you set the MAC in the config file.
The Ethernet driver typically provides this as one of its CDL options.
Is that what you're asking or have I not understood your question?
...Laurie:{)
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org]On Behalf Of Grant
Edwards
Sent: Monday, 6 November 2006 6:46 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: RedBoot "set MAC address" API?
On 2006-11-05, Grant Edwards <grante@visi.com> wrote:
> On 2006-11-05, Grant Edwards <grante@visi.com> wrote:
>> On 2006-11-05, Grant Edwards <grante@visi.com> wrote:
>>
>>> How do I call the ethernet driver's control function to set the
>>> MAC address?
>>
>> This seems to work:
>>
>>
>>
__local_enet_sc->funs->control(__local_enet_sc,ETH_DRV_SET_MAC_ADDRESS,mac_a
ddress,sizeof mac_address);
>
> I was wrong, that doesn't work. It changes the MAC address in
> the MAC, but the networks stack doesn't seem to know it's been
> changed, so ARP replies have the wrong MAC address in them. :(
Also setting __local_enet_addr fixed that problem.
>> How is the MAC address supposed to be set initially?
AFAICT, RedBoot expects the Ethernet MAC driver to know what
MAC to use without any "application" layer help. How is the
driver supposed to know what MAC address to use?
--
Grant Edwards grante Yow! Your CHEEKS sit
like
at twin NECTARINES above
visi.com a MOUTH that knows no
BOUNDS --
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss