Simon wrote:

> Yep, AutoIP is something different from the usage scenario. However, 
> from the technical point of view, it's very close to what you want. I 
> wouldn't automatically switch off the local netif though: I think it 
> should be up to the application to decide whether to set the netif down 
> or not. If you just set the netif down when you receive an ARP 
> announcement/response that is not from your MAC, that would result in 
> both devices shutting down.
> 
> I think I remember reading about duplicate address reporting when 
> reading about Ethernet/IP... As none of the lwIP developers seems to 
> find the time to implement this, the fastest way for you would probably 
> be to just intercept ARP responses where they are passed to DHCP and 
> handle them yourself.

If I write a detection routine, it can't be in dhcp.c, because that
file might not even be compiled (LWIP_DCHP == 0).

I think the detection routine has to be in etharp.c, in the handling
of ARP_REPLY packets. Do you disagree?

-- 
Regards.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to