14 #ifndef __PTPMGMT_C_MSG_H
15 #define __PTPMGMT_C_MSG_H
399 size_t bufSize, uint16_t sequence);
C interface to configuration class.
const struct ptpmgmt_safile_t * const_ptpmgmt_safile
Definition: cfg.h:38
ptpmgmt_mng_vals_e
Management TLVs ID.
Definition: mngIds.h:28
ptpmgmt_msg ptpmgmt_msg_alloc()
bool ptpmgmt_msg_is_TTRA(uint8_t flags)
const char * ptpmgmt_msg_portState2str(enum ptpmgmt_portState_e state)
const char * ptpmgmt_msg_netProt2str(enum ptpmgmt_networkProtocol_e protocol)
const char * ptpmgmt_msg_clkType2str(enum ptpmgmt_clockType_e type)
const char * ptpmgmt_msg_delayMech2str(enum ptpmgmt_delayMechanism_e type)
struct ptpmgmt_msg_t * ptpmgmt_msg
Definition: msg.h:26
const char * ptpmgmt_msg_mng2str(enum ptpmgmt_mng_vals_e id)
const char * ptpmgmt_msg_us2str(enum ptpmgmt_linuxptpUnicastState_e state)
bool ptpmgmt_msg_is_LI_61(uint8_t flags)
const char * ptpmgmt_msg_errId2str(enum ptpmgmt_managementErrorId_e err)
const char * ptpmgmt_msg_timeSrc2str(enum ptpmgmt_timeSource_e type)
bool ptpmgmt_msg_findPortState(const char *str, enum ptpmgmt_portState_e *state, bool caseSens)
bool ptpmgmt_msg_is_FTRA(uint8_t flags)
const struct ptpmgmt_msg_t * const_ptpmgmt_msg
Definition: msg.h:29
const char * ptpmgmt_msg_pwr2str(enum ptpmgmt_linuxptpPowerProfileVersion_e ver)
const char * ptpmgmt_msg_smpteLck2str(enum ptpmgmt_SMPTEmasterLockingStatus_e state)
const char * ptpmgmt_msg_clockAcc2str(enum ptpmgmt_clockAccuracy_e value)
bool ptpmgmt_msg_is_PTP(uint8_t flags)
const char * ptpmgmt_msg_err2str(enum ptpmgmt_MNG_PARSE_ERROR_e err)
bool ptpmgmt_msg_is_LI_59(uint8_t flags)
bool ptpmgmt_msg_isEmpty(enum ptpmgmt_mng_vals_e id)
bool ptpmgmt_msg_findDelayMech(const char *str, enum ptpmgmt_delayMechanism_e *type, bool exact)
const char * ptpmgmt_msg_ts2str(enum ptpmgmt_linuxptpTimeStamp_e type)
bool ptpmgmt_msg_findTimeSrc(const char *str, enum ptpmgmt_timeSource_e *type, bool exact)
ptpmgmt_msg ptpmgmt_msg_alloc_prms(ptpmgmt_cpMsgParams prms)
bool ptpmgmt_msg_findMngID(const char *str, enum ptpmgmt_mng_vals_e *id, bool exact)
bool(* ptpmgmt_msg_sig_callback)(void *cookie, const_ptpmgmt_msg msg, enum ptpmgmt_tlvType_e tlvType, const void *tlv)
Definition: msg.h:40
bool ptpmgmt_msg_is_UTCV(uint8_t flags)
const char * ptpmgmt_msg_act2str(enum ptpmgmt_actionField_e action)
const char * ptpmgmt_msg_tlv2str(enum ptpmgmt_tlvType_e type)
const char * ptpmgmt_msg_type2str(enum ptpmgmt_msgType_e type)
const char * ptpmgmt_msg_faultRec2str(enum ptpmgmt_faultRecord_e code)
PTP management TLV structures.
PTP signalling TLV structures.
ptpmgmt_linuxptpTimeStamp_e
Definition: types.h:355
ptpmgmt_linuxptpPowerProfileVersion_e
Definition: types.h:371
ptpmgmt_faultRecord_e
Definition: types.h:268
ptpmgmt_networkProtocol_e
Definition: types.h:228
ptpmgmt_MNG_PARSE_ERROR_e
Definition: types.h:79
ptpmgmt_msgType_e
Definition: types.h:122
ptpmgmt_managementErrorId_e
Definition: types.h:207
struct ptpmgmt_MsgParams * ptpmgmt_pMsgParams
Definition: types.h:494
ptpmgmt_portState_e
Definition: types.h:292
ptpmgmt_tlvType_e
Definition: types.h:150
ptpmgmt_linuxptpUnicastState_e
Definition: types.h:380
ptpmgmt_delayMechanism_e
Definition: types.h:307
ptpmgmt_SMPTEmasterLockingStatus_e
Definition: types.h:335
ptpmgmt_timeSource_e
Definition: types.h:279
ptpmgmt_clockAccuracy_e
Definition: types.h:237
ptpmgmt_clockType_e
Definition: types.h:220
ptpmgmt_actionField_e
Definition: types.h:199
uint8_t(* getPTPProfileSpecific)(const_ptpmgmt_msg msg)
Definition: msg.h:451
bool(* useAuth)(ptpmgmt_msg msg, const_ptpmgmt_safile sa, uint8_t spp, uint32_t key)
Definition: msg.h:100
enum ptpmgmt_tlvType_e(* getMngType)(const_ptpmgmt_msg msg)
Definition: msg.h:553
uint32_t(* getSdoId)(const_ptpmgmt_msg msg)
Definition: msg.h:476
bool(* isLastMsgSig)(const_ptpmgmt_msg msg)
Definition: msg.h:534
bool(* is_UTCV)(uint8_t flags)
Definition: msg.h:331
bool(* is_LI_59)(uint8_t flags)
Definition: msg.h:325
bool(* useConfig)(ptpmgmt_msg msg, const_ptpmgmt_cfg cfg, const char *section)
Definition: msg.h:176
void(* clearData)(const_ptpmgmt_msg msg)
Definition: msg.h:383
bool(* is_LI_61)(uint8_t flags)
Definition: msg.h:319
bool(* isEmpty)(enum ptpmgmt_mng_vals_e id)
Definition: msg.h:355
enum ptpmgmt_mng_vals_e(* getSigMngTlvType)(const_ptpmgmt_msg msg, size_t position)
Definition: msg.h:592
bool(* isValidId)(const_ptpmgmt_msg msg, enum ptpmgmt_mng_vals_e id)
Definition: msg.h:363
bool(* updateParams)(ptpmgmt_msg msg, ptpmgmt_cpMsgParams prms)
Definition: msg.h:81
bool(* isUnicast)(const_ptpmgmt_msg msg)
Definition: msg.h:444
void(* free)(ptpmgmt_msg msg)
Definition: msg.h:68
uint8_t(* getMinorVersionPTP)(const_ptpmgmt_msg msg)
Definition: msg.h:494
enum ptpmgmt_mng_vals_e(* getTlvId)(const_ptpmgmt_msg msg)
Definition: msg.h:150
bool(* changeAuth)(ptpmgmt_msg msg, uint8_t spp, uint32_t key)
Definition: msg.h:109
bool(* findPortState)(const char *str, enum ptpmgmt_portState_e *state, bool caseSens)
Definition: msg.h:273
size_t(* getSigTlvsCount)(const_ptpmgmt_msg msg)
Definition: msg.h:569
enum ptpmgmt_MNG_PARSE_ERROR_e(* parse)(const_ptpmgmt_msg msg, const void *buf, ssize_t msgSize)
Definition: msg.h:430
bool(* findTimeSrc)(const char *str, enum ptpmgmt_timeSource_e *type, bool exact)
Definition: msg.h:258
enum ptpmgmt_tlvType_e(* getSigTlvType)(const_ptpmgmt_msg msg, size_t position)
Definition: msg.h:583
enum ptpmgmt_actionField_e(* getReplyAction)(const_ptpmgmt_msg msg)
Definition: msg.h:438
bool(* traversSigTlvs)(ptpmgmt_msg msg, void *cookie, ptpmgmt_msg_sig_callback callback)
Definition: msg.h:562
bool(* disableAuth)(ptpmgmt_msg msg)
Definition: msg.h:122
bool(* findMngID)(const char *str, enum ptpmgmt_mng_vals_e *id, bool exact)
Definition: msg.h:214
uint8_t(* getVersionPTP)(const_ptpmgmt_msg msg)
Definition: msg.h:488
bool(* isLastMsgSMPTE)(const_ptpmgmt_msg msg)
Definition: msg.h:540
bool(* isAllClocks)(const_ptpmgmt_msg msg)
Definition: msg.h:167
enum ptpmgmt_msgType_e(* getType)(const_ptpmgmt_msg msg)
Definition: msg.h:546
bool(* haveAuth)(const_ptpmgmt_msg msg)
Definition: msg.h:144
size_t(* getMsgLen)(const_ptpmgmt_msg msg)
Definition: msg.h:411
bool(* is_FTRA)(uint8_t flags)
Definition: msg.h:349
bool(* useAuth_cfg)(ptpmgmt_msg msg, const_ptpmgmt_cfg cfg, const char *section)
Definition: msg.h:90
ptpmgmt_pMsgParams(* getParams)(ptpmgmt_msg msg)
Definition: msg.h:74
bool(* is_TTRA)(uint8_t flags)
Definition: msg.h:343
enum ptpmgmt_managementErrorId_e(* getErrId)(const_ptpmgmt_msg msg)
Definition: msg.h:521
enum ptpmgmt_MNG_PARSE_ERROR_e(* build)(const_ptpmgmt_msg msg, void *buf, size_t bufSize, uint16_t sequence)
Definition: msg.h:398
const_ptpmgmt_safile(* getSa)(ptpmgmt_msg msg)
Definition: msg.h:138
enum ptpmgmt_mng_vals_e(* getBuildTlvId)(const_ptpmgmt_msg msg)
Definition: msg.h:156
ssize_t(* getMsgPlanedLen)(const_ptpmgmt_msg msg)
Definition: msg.h:421
enum ptpmgmt_actionField_e(* getSendAction)(const_ptpmgmt_msg msg)
Definition: msg.h:405
void(* setAllClocks)(const_ptpmgmt_msg msg)
Definition: msg.h:161
uint16_t(* getSequence)(const_ptpmgmt_msg msg)
Definition: msg.h:457
bool(* setAction)(ptpmgmt_msg msg, enum ptpmgmt_actionField_e actionField, enum ptpmgmt_mng_vals_e tlv_id, const void *dataSend)
Definition: msg.h:377
uint8_t(* getDomainNumber)(const_ptpmgmt_msg msg)
Definition: msg.h:482
bool(* changeAuthKey)(ptpmgmt_msg msg, uint32_t key)
Definition: msg.h:116
uint32_t(* usedAuthKeyID)(const_ptpmgmt_msg msg)
Definition: msg.h:133
bool(* findDelayMech)(const char *str, enum ptpmgmt_delayMechanism_e *type, bool exact)
Definition: msg.h:288
bool(* is_PTP)(uint8_t flags)
Definition: msg.h:337
int(* usedAuthSppID)(const_ptpmgmt_msg msg)
Definition: msg.h:127