mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
net/usrsock: fix get/setsockopt issue about usrsock protocol
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
9c6971279d
commit
d5b08a7ef1
@@ -189,7 +189,7 @@ int usrsock_getsockopt(FAR struct socket *psock, int level, int option,
|
||||
*value_len = sizeof(int);
|
||||
return OK;
|
||||
}
|
||||
else
|
||||
else if (option == SO_RCVTIMEO || option == SO_SNDTIMEO)
|
||||
{
|
||||
return -ENOPROTOOPT;
|
||||
}
|
||||
|
||||
@@ -174,10 +174,6 @@ int usrsock_setsockopt(FAR struct socket *psock, int level, int option,
|
||||
{
|
||||
return -ENOPROTOOPT;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
net_lock();
|
||||
|
||||
Reference in New Issue
Block a user