PppHeader

Namespace: inet

class PppHeader

PPP frame.

Constant-value header fields are not modelled: Flag (=0x7e), address (=0xff), control (=0x03), FCS (bitError())

FCS is modelled only via cMessage’s bit error attribute.

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[]

chunkLength

flag

short

1 byte

address

short

1 byte

control

short

1 byte

protocol

int

2 byte

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// PPP frame.
//
// Constant-value header fields are not modelled:
// Flag (=0x7e), address (=0xff), control (=0x03), FCS (bitError())
//
// FCS is modelled only via cMessage's bit error attribute.
class PppHeader extends FieldsChunk
{
    chunkLength = PPP_HEADER_LENGTH;
    short flag = 0x7e;      //1 byte
    short address = 0xff;   //1 byte
    short control = 0x03;   //1 byte
    int protocol = -1;      //2 byte
}

File: src/inet/linklayer/ppp/PppFrame.msg