|
|
| 53 |
* \param tos the 8 bits of Ipv4 TOS. |
53 |
* \param tos the 8 bits of Ipv4 TOS. |
| 54 |
*/ |
54 |
*/ |
| 55 |
void SetTos (uint8_t tos); |
55 |
void SetTos (uint8_t tos); |
|
|
56 |
public: |
| 56 |
/** |
57 |
/** |
| 57 |
* \enum DscpType |
58 |
* \enum DscpType |
| 58 |
* \brief DiffServ Code Points |
59 |
* \brief DiffServ Code Points |
| 59 |
* Code Points defined in |
60 |
* Code Points defined in |
| 60 |
* Assured Forwarding (AF) \RFC{2597} |
61 |
* Assured Forwarding (AF) \RFC{2597} |
| 61 |
* Expedited Forwarding (EF) \RFC{2598} |
62 |
* Expedited Forwarding (EF) \RFC{2598} |
|
|
| 66 |
DscpDefault = 0x00, |
67 |
DscpDefault = 0x00, |
| 67 |
|
68 |
|
| 68 |
// Prefixed with "DSCP" to avoid name clash (bug 1723) |
69 |
// Prefixed with "DSCP" to avoid name clash (bug 1723) |
| 69 |
DSCP_CS1 = 0x20, |
70 |
DSCP_CS1 = 0x08, // octal 010 |
| 70 |
DSCP_AF11 = 0x28, |
71 |
DSCP_AF11 = 0x0A, // octal 012 |
| 71 |
DSCP_AF12 = 0x30, |
72 |
DSCP_AF12 = 0x0C, // octal 014 |
| 72 |
DSCP_AF13 = 0x38, |
73 |
DSCP_AF13 = 0x0E, // octal 016 |
| 73 |
|
74 |
|
| 74 |
DSCP_CS2 = 0x40, |
75 |
DSCP_CS2 = 0x10, // octal 020 |
| 75 |
DSCP_AF21 = 0x48, |
76 |
DSCP_AF21 = 0x12, // octal 022 |
| 76 |
DSCP_AF22 = 0x50, |
77 |
DSCP_AF22 = 0x14, // octal 024 |
| 77 |
DSCP_AF23 = 0x58, |
78 |
DSCP_AF23 = 0x16, // octal 026 |
| 78 |
|
79 |
|
| 79 |
DSCP_CS3 = 0x60, |
80 |
DSCP_CS3 = 0x18, // octal 030 |
| 80 |
DSCP_AF31 = 0x68, |
81 |
DSCP_AF31 = 0x1A, // octal 032 |
| 81 |
DSCP_AF32 = 0x70, |
82 |
DSCP_AF32 = 0x1C, // octal 034 |
| 82 |
DSCP_AF33 = 0x78, |
83 |
DSCP_AF33 = 0x1E, // octal 036 |
| 83 |
|
84 |
|
| 84 |
DSCP_CS4 = 0x80, |
85 |
DSCP_CS4 = 0x20, // octal 040 |
| 85 |
DSCP_AF41 = 0x88, |
86 |
DSCP_AF41 = 0x22, // octal 042 |
| 86 |
DSCP_AF42 = 0x90, |
87 |
DSCP_AF42 = 0x24, // octal 044 |
| 87 |
DSCP_AF43 = 0x98, |
88 |
DSCP_AF43 = 0x26, // octal 046 |
| 88 |
|
89 |
|
| 89 |
DSCP_CS5 = 0xA0, |
90 |
DSCP_CS5 = 0x28, // octal 050 |
| 90 |
DSCP_EF = 0xB8, |
91 |
DSCP_EF = 0x2E, // octal 056 |
| 91 |
|
92 |
|
| 92 |
DSCP_CS6 = 0xC0, |
93 |
DSCP_CS6 = 0x30, // octal 060 |
| 93 |
DSCP_CS7 = 0xE0 |
94 |
DSCP_CS7 = 0x38 // octal 070 |
| 94 |
|
95 |
|
| 95 |
}; |
96 |
}; |
| 96 |
/** |
97 |
/** |
| 97 |
* \brief Set DSCP Field |
98 |
* \brief Set DSCP Field |