UdpSetTosCommand

Namespace: inet

class UdpSetTosCommand

Control info for setting the TOS (Type Of Service) / Traffic Class header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket. This is a 8-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

UdpSetOptionCommand

class

Base class for UDP socket option control info classes.

Fields

Name

Type

Description

optionCode

UdpSetOptionSubcode

optionCode

tos

short

type of service for Ipv4 / Traffic class for Ipv6

Source code

//
// Control info for setting the TOS (Type Of Service) / Traffic Class
// header field on outgoing Ipv4/Ipv6 packets sent from an Udp socket.
// This is a 8-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 UdpSetTosCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_TOS;
    short tos;  // type of service for Ipv4 / Traffic class for Ipv6
}

File: src/inet/transportlayer/contract/udp/UdpCommand.msg