mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
SO_BROADCAST is valid for SOCK_DGRAM only
This commit is contained in:
parent
9dee346000
commit
79bd47736c
@ -2448,6 +2448,10 @@ lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *opt
|
|||||||
|
|
||||||
/* The option flags */
|
/* The option flags */
|
||||||
case SO_BROADCAST:
|
case SO_BROADCAST:
|
||||||
|
if (NETCONNTYPE_GROUP(sock->conn->type) != SOCK_DGRAM) {
|
||||||
|
done_socket(sock);
|
||||||
|
return ENOPROTOOPT;
|
||||||
|
}
|
||||||
case SO_KEEPALIVE:
|
case SO_KEEPALIVE:
|
||||||
#if SO_REUSE
|
#if SO_REUSE
|
||||||
case SO_REUSEADDR:
|
case SO_REUSEADDR:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user