[lwip-users] Successful bind for wrong IP address!
From:
Amena El Homsi
Subject:
[lwip-users] Successful bind for wrong IP address!
Date:
Wed, 20 May 2020 17:18:59 +0300
Hi,
We have one network interface assigned an IP address through DHCP.
We create a udp (or tcp) socket. When we try to bind the socket to wrong IP address (different than the one assigned to our network interface), udp_bind() returns ERR_OK.
I think we should report an error instead of ERR_OK.
If we use netcat to open a socket on linux using wrong IP address, binding fails as mentioned in the attached picture.