My application must perform duplicate IP address detection to ensure an device does not start using an IP address that is already in use on that network. Have you any idea how could I solve this problem with the standart Rabbit library?
You could Ping the IP adress, and see if you get a response. If you do then that IP adress is already taken. To be able to Ping an IP adress would require your device to already have an IP adress, so assign one that is intended only for this purpose. The rabbit would use this IP adress first to find a valid IP adress.
This is off course if you cannot incorporate a DNS server in your network.
[QUOTE=kobuseng;4236]You could Ping the IP adress, and see if you get a response. If you do then that IP adress is already taken. To be able to Ping an IP adress would require your device to already have an IP adress, so assign one that is intended only for this purpose. The rabbit would use this IP adress first to find a valid IP adress.
This is off course if you cannot incorporate a DNS server in your network.[/quote]
kobuseng thanks for your idea. But:
What IP adress have I assign first? I’m not be sure that this adress will not be in use on that network!
I found configuration macros ARP_CONFLICT_CALLBACK for ARP. Define a function to call in case of IP address conflict. Does somebody known can I use and how this macros for my purpose (duplicate IP address detection)