mirror of https://github.com/ARMmbed/mbed-os.git
set ip type of service to set specific precedence for QoS
parent
fcb3889445
commit
7f2c00b54c
|
@ -666,7 +666,7 @@ nsapi_error_t LWIP::setsockopt(nsapi_socket_t handle, int level, int optname, co
|
||||||
|
|
||||||
case NSAPI_IPTOS:
|
case NSAPI_IPTOS:
|
||||||
if (optlen != sizeof(int)) {
|
if (optlen != sizeof(int)) {
|
||||||
return NSAPI_ERROR_UNSUPPORTED;
|
return NSAPI_ERROR_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
s->conn->pcb.ip->tos = (u8_t)(*(const int *)optval);
|
s->conn->pcb.ip->tos = (u8_t)(*(const int *)optval);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue