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 |
|---|---|---|
class |
(no description) |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
||
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
||
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
}