UdpSetDscpCommand¶
Namespace: inet
class UdpSetDscpCommand
Control info for setting the DSCP (DiffServ Code Point) header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket. This is a 6-bit field. To set the option, send a message to the Udp module with kind=UDP_C_SETOPTION and an and instance of this control info class attached.
See also: UdpCommandCode
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
Base class for UDP socket option control info classes. |
Fields¶
Name |
Type |
Description |
|---|---|---|
optionCode |
||
optionCode |
||
dscp |
short |
Source code¶
//
// Control info for setting the DSCP (DiffServ Code Point)
// header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket.
// This is a 6-bit field.
// To set the option, send a message to the ~Udp module with kind=UDP_C_SETOPTION
// and an and instance of this control info class attached.
//
// @see ~UdpCommandCode
//
class UdpSetDscpCommand extends UdpSetOptionCommand
{
optionCode = UDP_C_SETOPTION_DSCP;
short dscp; // diffserv code point for Ipv4/Ipv6
}