2.2.4 TLV
The following diagram specifies the standard TLV structure that MUST be used by the result TLV (section 2.2.8.1.2).
The fields of the structure MUST be transmitted in network byte order from left to right.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M |
R |
TLV Type |
Length |
||||||||||||||||||||||||||||
Value (variable) |
|||||||||||||||||||||||||||||||
... |
M (1 bit): The M bit has the following possible values and MUST be set:
-
Value
Meaning
0
This TLV support is optional for the recipient. If the TLV is not supported, the recipient MUST ignore the TLV.
1
This TLV support is mandatory for the recipient. If the TLV is not supported, the recipient MUST discard the PEAP packet that contains the TLV.
R (1 bit): The R bit is reserved and MUST be set to zero when sent and MUST be ignored on receipt.
TLV Type (14 bits): A 14-bit unsigned integer in network byte order that indicates the type of data in the Value field. Allocated types include the following:
-
Value
Description
1
2
3
Result TLV or SoH Response TLV (when transmitted in a Vendor-Specific TLV)
7
12
Length (2 bytes): A 16-bit unsigned integer in network-byte order that indicates the length, in bytes, of the Value field.
Value (variable): The value MUST be formatted in accordance with the type specified in the TLV Type field.