mirror of https://github.com/ARMmbed/mbed-os.git
set ip type of service to set specific precedence for QoS
parent
66423948e0
commit
fcb3889445
|
|
@ -664,6 +664,12 @@ nsapi_error_t LWIP::setsockopt(nsapi_socket_t handle, int level, int optname, co
|
||||||
return err_remap(igmp_err);
|
return err_remap(igmp_err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NSAPI_IPTOS:
|
||||||
|
if (optlen != sizeof(int)) {
|
||||||
|
return NSAPI_ERROR_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
s->conn->pcb.ip->tos = (u8_t)(*(const int *)optval);
|
||||||
|
return 0;
|
||||||
default:
|
default:
|
||||||
return NSAPI_ERROR_UNSUPPORTED;
|
return NSAPI_ERROR_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -272,6 +272,7 @@ typedef enum nsapi_socket_option {
|
||||||
NSAPI_BIND_TO_DEVICE, /*!< Bind socket network interface name*/
|
NSAPI_BIND_TO_DEVICE, /*!< Bind socket network interface name*/
|
||||||
NSAPI_LATENCY, /*!< Read estimated latency to destination */
|
NSAPI_LATENCY, /*!< Read estimated latency to destination */
|
||||||
NSAPI_STAGGER, /*!< Read estimated stagger value to destination */
|
NSAPI_STAGGER, /*!< Read estimated stagger value to destination */
|
||||||
|
NSAPI_IPTOS, /*!< Set IP type of service to set specific precedence */
|
||||||
} nsapi_socket_option_t;
|
} nsapi_socket_option_t;
|
||||||
|
|
||||||
typedef enum nsapi_tlssocket_level {
|
typedef enum nsapi_tlssocket_level {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue