[lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Freddie Chopin
Hello! I was wondering what is the proper way to change MAC address of network interface. Can I just change the contents of netif.hwaddr[] and expect everything to still work correctly (assuming I also change the MAC address in the driver)? Maybe I have to bring the netif completely down, remove i

[lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Freddie Chopin
Hello! I was wondering what is the proper way to change MAC address of network interface. Can I just change the contents of netif.hwaddr[] and expect everything to still work correctly (assuming I also change the MAC address in the driver)? Maybe I have to bring the netif completely down, remove i

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Noam Weissman
users Subject: [lwip-users] Changing MAC address of network interface? Hello! I was wondering what is the proper way to change MAC address of network interface. Can I just change the contents of netif.hwaddr[] and expect everything to still work correctly (assuming I also change the MAC address in

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Noam Weissman
Freddie Chopin Sent: Thursday, April 07, 2016 11:59 AM To: lwip-users@nongnu.org Subject: [lwip-users] Changing MAC address of network interface? Hello! I was wondering what is the proper way to change MAC address of network interface. Can I just change the contents of netif.hwaddr[] and expect

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Freddie Chopin
On czw, 2016-04-07 at 14:34 +, Noam Weissman wrote: > Just a small addition. You can change  net_if.hwaddr[]  on the fly > for testing etc but I think  > it is better t reboot after that. You can change MAC address on your PC, so I'm wondering whether this is possible and easy with lwIP. "Easy

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Noam Weissman
ginal Message- From: lwip-users-bounces+noam=silrd@nongnu.org [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Freddie Chopin Sent: Thursday, April 07, 2016 5:43 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Changing MAC address of network interface? On czw, 2016-04-

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Freddie Chopin
On czw, 2016-04-07 at 14:51 +, Noam Weissman wrote: > If your TCP stack sends data before you change the MAC the older MAC > address is saved by the router/switch > It is connected to.. also it make sense that some packets are saved > within the TCP stack buffering with the > older MAC address

Re: [lwip-users] Changing MAC address of network interface?

2016-04-07 Thread Noam Weissman
-users-bounces+noam=silrd@nongnu.org [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Freddie Chopin Sent: Thursday, April 07, 2016 6:52 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Changing MAC address of network interface? On czw, 2016-04-07 at 14:51 +, Noam

Re: [lwip-users] Changing MAC address of network interface?

2016-04-08 Thread Sergio R. Caprile
Hi, as long as you are not using an application protocol that embeds layer-2 info in application data, you shouldn't have any issues with buffered data in lwIP, since it does not hold layer-2 info; it is added by the driver. You would need to restart your DHCP or AutoIP, and your PPPoE. SNMP i

Re: [lwip-users] Changing MAC address of network interface?

2016-04-08 Thread Freddie Chopin
On pią, 2016-04-08 at 10:27 -0300, Sergio R. Caprile wrote: > Hi, > as long as you are not using an application protocol that embeds > layer-2  > info in application data, you shouldn't have any issues with > buffered  > data in lwIP, since it does not hold layer-2 info; it is added by > the  > dri