Closed bubbasnmp closed 2 years ago
are Option Code and Option Type both needed?
No, they aren't. It's two names for the same field, which is a bug. I'd vote for "Option Type", as people seem to say "TLV" more often than they say "CLV".
Somebody push a fix ?
I would expect the text description (Option Type) and the field in the diagram (Option Code) to have the same name.
Option Type (16 bits): an unsigned value that contains the code that specifies the type of the current TLV record. Option types whose Most Significant Bit is equal to one are reserved for local use; therefore, there is no guarantee that the code used is unique among all capture files (generated by other applications), and is most certainly not portable. For cross-platform globally unique vendor-specific extensions, the Custom Option MUST be used instead, as defined in Section 3.5.1).
Option Length (16 bits): an unsigned value that contains the actual length of the following 'Option Value' field without the padding octets.
Option Value (variable length): the value of the given option, padded to a 32-bit boundary. The actual length of this field (i.e. without the padding octets) is specified by the Option Length field.