Fix next build error introduced in my last commit

This commit is contained in:
Dirk Ziegelmeier 2017-05-02 15:21:52 +02:00
parent 6a754325dc
commit e3289116b9

View File

@ -2938,16 +2938,23 @@ lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_
switch (NETCONNTYPE_GROUP(netconn_type(sock->conn)))
{
#if LWIP_TCP
case NETCONN_TCP:
tcp_bind_netif(sock->conn->pcb.tcp, n);
break;
#endif
#if LWIP_UDP
case NETCONN_UDP:
udp_bind_netif(sock->conn->pcb.udp, n);
break;
#endif
#if LWIP_RAW
case NETCONN_RAW:
raw_bind_netif(sock->conn->pcb.raw, n);
break;
#endif
default:
LWIP_ASSERT("Unhandled netconn type in SO_BINDTODEVICE", 0);
break;
}
}