mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-06 06:39:46 +00:00
Fix next build error introduced in my last commit
This commit is contained in:
parent
6a754325dc
commit
e3289116b9
@ -2938,16 +2938,23 @@ lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_
|
|||||||
|
|
||||||
switch (NETCONNTYPE_GROUP(netconn_type(sock->conn)))
|
switch (NETCONNTYPE_GROUP(netconn_type(sock->conn)))
|
||||||
{
|
{
|
||||||
|
#if LWIP_TCP
|
||||||
case NETCONN_TCP:
|
case NETCONN_TCP:
|
||||||
tcp_bind_netif(sock->conn->pcb.tcp, n);
|
tcp_bind_netif(sock->conn->pcb.tcp, n);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if LWIP_UDP
|
||||||
case NETCONN_UDP:
|
case NETCONN_UDP:
|
||||||
udp_bind_netif(sock->conn->pcb.udp, n);
|
udp_bind_netif(sock->conn->pcb.udp, n);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if LWIP_RAW
|
||||||
case NETCONN_RAW:
|
case NETCONN_RAW:
|
||||||
raw_bind_netif(sock->conn->pcb.raw, n);
|
raw_bind_netif(sock->conn->pcb.raw, n);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
|
LWIP_ASSERT("Unhandled netconn type in SO_BINDTODEVICE", 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user