mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
net/udp: Fix error: 'MAX_IFINDEX' undeclared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I6bc09ede185d6ee71d93268c44a8f69a49bf68c9
This commit is contained in:
@@ -127,7 +127,6 @@ int udp_setsockopt(FAR struct socket *psock, int option,
|
||||
ifindex = netdev_nametoindex(value);
|
||||
if (ifindex >= 0)
|
||||
{
|
||||
DEBUGASSERT(ifindex > 0 && ifindex <= MAX_IFINDEX);
|
||||
conn->boundto = ifindex;
|
||||
ret = OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user