gPTP Documentation
|
#include <avbts_message.hpp>
Public Member Functions | |
PathTraceTLV () | |
void | parseClockIdentity (uint8_t *buffer) |
Parses ClockIdentity from message buffer. More... | |
void | appendClockIdentity (ClockIdentity *id) |
Appends new ClockIdentity to internal ClockIdentity list. More... | |
void | toByteString (uint8_t *byte_str) |
Gets TLV value in a byte string format. More... | |
bool | has (ClockIdentity *id) |
Looks for a specific ClockIdentity on the current TLV. More... | |
int | length () |
Gets the total length of TLV. Total length of TLV is length of type field (UINT16) + length of 'length' field (UINT16) + length of identities (each PTP_CLOCK_IDENTITY_LENGTH) in the path. More... | |
Provides the PathTraceTLV interface The fields of the path TLV shall be as specified in Table 10-8 and in 10.5.4.3.2 through 10.5.4.3.9 from IEEE 802.1AS. This TLV, and its use, are defined in IEEE Std 1588-2008 (see 16.2 and Table 34 of IEEE Std 1588-2008).
|
inline |
Creates the PathTraceTLV interface. Sets tlvType to PATH_TRACE_TLV_TYPE using network byte order
|
inline |
Appends new ClockIdentity to internal ClockIdentity list.
id | ClockIdentity to be appended |
|
inline |
Looks for a specific ClockIdentity on the current TLV.
id | [in] Desired ClockIdentity |
|
inline |
Gets the total length of TLV. Total length of TLV is length of type field (UINT16) + length of 'length' field (UINT16) + length of identities (each PTP_CLOCK_IDENTITY_LENGTH) in the path.
|
inline |
Parses ClockIdentity from message buffer.
buffer | [in] Message buffer. It should be at least PTP_CLOCK_IDENTITY_LENGTH bytes long. |
|
inline |
Gets TLV value in a byte string format.
byte_str | [out] Output byte string |