set ip type of service to set specific precedence for QoS

pull/13671/head
Balaji Subramanyam 2020-09-25 15:25:08 -07:00
parent fcb3889445
commit 7f2c00b54c
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ nsapi_error_t LWIP::setsockopt(nsapi_socket_t handle, int level, int optname, co
case NSAPI_IPTOS:
if (optlen != sizeof(int)) {
return NSAPI_ERROR_UNSUPPORTED;
return NSAPI_ERROR_UNSUPPORTED;
}
s->conn->pcb.ip->tos = (u8_t)(*(const int *)optval);
return 0;