Re: [lwip-users] Acknowledge Problem

2016-04-07 Thread martin5523
Sorry, we didn´t notice that you replied to our question here. So we wrote two weeks later a bug report. https://savannah.nongnu.org/bugs/index.php?47305 (this link is just for your information...) Unfortunately we were in march busy with other problems. But this week we start working again at t

[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
Hi, MAC address should not be changed. This should be a onetime setup per device. Meaning you set a real MAC address that is assigned to you and that's all. This is done before calling netif_add function. Here is a portion of the initializing code I am using:

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

2016-04-07 Thread Noam Weissman
Hi, 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. BR, Noam. -Original Message- From: lwip-users-bounces+noam=silrd@nongnu.org [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Fred

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
Hi, No reason you could not. 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 (before you change it). I am cha

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
Hi, If you start networking with one MAC address and later change it you will probably have some packet lost. As the switch will try to send to the old MAC address. Any way you should not connect TCP and during this connection change the MAC. If you do not have any network activity, change MAC