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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Grant
Edwards
Sent: Monday, 6 November 2006 6:46 AM
To: [EMAIL PROTECTED]
Subject: [ECOS] Re: RedBoot "set MAC address" API?
On 2006-11-05, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2006-11-05, Grant Edwards <[EMAIL PROTECTED]> wrote:
>> On 2006-11-05, Grant Edwards <[EMAIL PROTECTED]> 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