TransportPseudoHeader¶
Namespace: inet
class TransportPseudoHeader
Represents a TCP/UDP pseudo header, used for checksum calculation.
Usage diagram¶
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
srcAddress |
||
destAddress |
||
networkProtocolId |
int |
inet specific value, Protocol::getId() |
protocolId |
int |
TCP: 6, UDP: 17 |
packetLength |
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