PppHeader

Namespace inet

PppHeader

class

PPP frame.

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

CRC is modelled only via cMessage's bit error attribute.

Extends

Name Type Description
FieldsChunk (unknown -- not in documented files)

Fields

Name Type Description
chunkLength
flag short

1 byte

address short

1 byte

control short

1 byte

protocol int

2 byte

Packet operations (observed)

actionmodule
insertAtFrontPpp
peekAtFrontPpp
popAtFrontPpp

Source code

//
// PPP frame.
//
// Constant-value header fields are not modelled:
// Flag (=0x7e), address (=0xff), control (=0x03), CRC (bitError())
//
// CRC 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