[ECOS] Re: RedBoot "set MAC address" API?
Sun Nov 5 19:46:00 GMT 2006
On 2006-11-05, Grant Edwards <firstname.lastname@example.org> wrote:
> On 2006-11-05, Grant Edwards <email@example.com> wrote:
>> On 2006-11-05, Grant Edwards <firstname.lastname@example.org> 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_address,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
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss