PppHeader
classPPP 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.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| FieldsChunk | class | (no description) |
Fields
| Name | Type | Description |
|---|---|---|
| chunkLength | b | |
| flag | short |
1 byte |
| address | short |
1 byte |
| control | short |
1 byte |
| protocol | int |
2 byte |
| id | int | |
| mutable | bool | |
| complete | bool | |
| correct | bool | |
| properlyRepresented | bool | |
| rawBin | string[] | |
| rawHex | string[] | |
| regionTags | SharingRegionTagSet::TagBaseRegionTag[] |
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