|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <cfg.h>
Public Attributes | |
| void(* | free )(ptpmgmt_cfg cfg) |
| bool(* | read_cfg )(ptpmgmt_cfg cfg, const char *file) |
| uint8_t(* | transportSpecific )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | domainNumber )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | udp6_scope )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | udp_ttl )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | socket_priority )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | network_transport )(const_ptpmgmt_cfg cfg, const char *section) |
| uint16_t(* | active_key_id )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | spp )(const_ptpmgmt_cfg cfg, const char *section) |
| uint8_t(* | allow_unauth )(const_ptpmgmt_cfg cfg, const char *section) |
| bool(* | haveSpp )(const_ptpmgmt_cfg cfg, const char *section) |
| const char *(* | uds_address )(const_ptpmgmt_cfg cfg, const char *section) |
| const char *(* | sa_file )(const_ptpmgmt_cfg cfg, const char *section) |
| const void *(* | ptp_dst_mac )(const_ptpmgmt_cfg cfg, size_t *len, const char *section) |
| const void *(* | p2p_dst_mac )(const_ptpmgmt_cfg cfg, size_t *len, const char *section) |
The ptpmgmt configuration structure hold the configuration object and call backs to call C++ methods
| uint16_t(* ptpmgmt_cfg_t::active_key_id) (const_ptpmgmt_cfg cfg, const char *section) |
Get the authentication key ID value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::allow_unauth) (const_ptpmgmt_cfg cfg, const char *section) |
Get accept unauthenticated response messages value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::domainNumber) (const_ptpmgmt_cfg cfg, const char *section) |
Get the domainNumber value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| void(* ptpmgmt_cfg_t::free) (ptpmgmt_cfg cfg) |
< Free this configuration object
| [in,out] | cfg | configuration object to free |
| bool(* ptpmgmt_cfg_t::haveSpp) (const_ptpmgmt_cfg cfg, const char *section) |
Query whether the authentication security parameter pointer is set
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::network_transport) (const_ptpmgmt_cfg cfg, const char *section) |
Get the network_transport value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| const void *(* ptpmgmt_cfg_t::p2p_dst_mac) (const_ptpmgmt_cfg cfg, size_t *len, const char *section) |
Get the p2p_dst_mac value
| [in] | cfg | configuration object |
| [out] | len | Mac address length |
| [in] | section | (optional) |
| const void *(* ptpmgmt_cfg_t::ptp_dst_mac) (const_ptpmgmt_cfg cfg, size_t *len, const char *section) |
Get the ptp_dst_mac value
| [in] | cfg | configuration object |
| [out] | len | Mac address length |
| [in] | section | (optional) |
| bool(* ptpmgmt_cfg_t::read_cfg) (ptpmgmt_cfg cfg, const char *file) |
Read a configuration file and parse it
| [in,out] | cfg | configuration object |
| [in] | file | name with path |
| const char *(* ptpmgmt_cfg_t::sa_file) (const_ptpmgmt_cfg cfg, const char *section) |
Get the authentication security association file value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::socket_priority) (const_ptpmgmt_cfg cfg, const char *section) |
Get the socket_priority value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::spp) (const_ptpmgmt_cfg cfg, const char *section) |
Get the authentication security parameter pointer value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::transportSpecific) (const_ptpmgmt_cfg cfg, const char *section) |
Get the transportSpecific value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::udp6_scope) (const_ptpmgmt_cfg cfg, const char *section) |
Get the udp6_scope value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| uint8_t(* ptpmgmt_cfg_t::udp_ttl) (const_ptpmgmt_cfg cfg, const char *section) |
Get the udp_ttl value
| [in] | cfg | configuration object |
| [in] | section | (optional) |
| const char *(* ptpmgmt_cfg_t::uds_address) (const_ptpmgmt_cfg cfg, const char *section) |
Get the uds_address value
| [in] | cfg | configuration object |
| [in] | section | (optional) |