Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Pomeroy, Marty
>> If I understand correctly, you're saying that nothing should be done >> either to detect the address conflict in the stack? > Simon... I don't think we should automatically disable a netif. Providing > a callback for an "application" to react on it should be fine Detection and reporting h

Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Mason
Simon Goldschmidt wrote: > That's what I said: "where they are passed to DHCP", not "in dhcp.c" > (i.e. add a call to your own function in etharp_arp_input() just > after/before the call to dhcp_arp_reply() - in this function, check > if the ARP response handles your IP address and react > appropr

Re: [lwip-users] lwip fails for full duplex communication

2012-05-30 Thread GICINDIA
My product requirement is serial to Ethernet & vice verse data transmission. Full duplex means, i m receiving (Ethernet to Serial)and transmitting (Serial to Ethernet) data (500kb file)simultaneously on a single PCB connection, continuously. I think problem is in buffer configurations in lwipo

Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Simon Goldschmidt
Mason wrote: > > 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

Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Simon Goldschmidt
Mason wrote: > If I understand correctly, you're saying that nothing should be > done either to detect the address conflict in the stack? I think the best solution would be to detect an address conflict but to let the user react on it: after all, the assignment has been manually - in that case,

Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Mason
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

Re: [lwip-users] Being notified of an address conflict when setting address manually

2012-05-30 Thread Mason
Marty wrote: > I want to add support to Simon's point: If the netif goes down, then > someone has to know where to look to figure out why. It kinda moves the > problem to another layer. > > I appreciate trying to protect users from themselves, but using a > correct process for manual IP assignm