TransportPseudoHeader

Namespace: inet

class TransportPseudoHeader

Represents a TCP/UDP pseudo header, used for checksum calculation.

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

FieldsChunk

class

(no description)

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

srcAddress

L3Address

destAddress

L3Address

networkProtocolId

int

inet specific value, Protocol::getId()

protocolId

int

TCP: 6, UDP: 17

packetLength

B

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Represents a TCP/UDP pseudo header, used for checksum calculation.
//
class TransportPseudoHeader extends FieldsChunk
{
    L3Address srcAddress;
    L3Address destAddress;
    int networkProtocolId;  // inet specific value, Protocol::getId()
    int protocolId = -1;    // TCP: 6, UDP: 17
    B packetLength = B(-1);
}

File: src/inet/transportlayer/common/TransportPseudoHeader.msg