[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Re: Restarting lwip/ethernet

From: address@hidden
Subject: Re: [lwip-users] Re: Restarting lwip/ethernet
Date: Mon, 03 Aug 2009 19:43:32 +0200
User-agent: Thunderbird (Macintosh/20090605)

Technically, the MAC is only stored in netif->hwaddr and only used from the ARP, DHCP and AutoIP modules (aside from maybe your netif driver and SNMP). So you might get what you want by stopping both DHCP and AutoIP and then just changing netif->hwaddr.

I did not test this though! Also, care must be taken the netif->hwaddr is not accessed (e.g. by receiving packets) while you change it.


Alexandre Malo wrote:
it did work :) I was wondering about the MAC address, is there a similar set of function we could use? Know if it's possible to change it on run time? Thanks!
>> Date: Sat, 25 Jul 2009 16:35:38 +0400
>> From: Mike Kleshov <address@hidden <mailto:address@hidden>>
>> Subject: Re: [lwip-users] Restarting lwip/ethernet
>> To: Mailing list for lwIP users <address@hidden <mailto:address@hidden>>
>> Message-ID:
>> <address@hidden <mailto:address@hidden>>
>> Content-Type: text/plain; charset=ISO-8859-1
>> What I do is simply call netif_set_addr(), and that's it. And it
>> works. By the way, this function automatically enumerates TCP pcb's,
>> aborts open connections and rebinds listening pcb's.
>> - mike

lwip-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]