|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <cfg.h>

Public Attributes | |
| void(* | free )(ptpmgmt_safile sf) |
| bool(* | read_sa )(ptpmgmt_safile sf, const char *file) |
| bool(* | read_sa_cfg )(ptpmgmt_safile sf, const_ptpmgmt_cfg cfg, const char *section) |
| bool(* | have )(const_ptpmgmt_safile sf, uint8_t spp) |
| bool(* | have_key )(const_ptpmgmt_safile sf, uint8_t spp, uint32_t key) |
| const_ptpmgmt_spp(* | spp )(ptpmgmt_safile sf, uint8_t spp) |
The ptpmgmt SA file structure hold an authentication security association file object and call backs to call C++ methods
| void(* ptpmgmt_safile_t::free) (ptpmgmt_safile sf) |
< Free an an authentication security association file object
| [in,out] | sf | authentication security association file object |
| bool(* ptpmgmt_safile_t::have) (const_ptpmgmt_safile sf, uint8_t spp) |
Verify SPP is in the SA_file and have at least one key
| [in] | sf | authentication security association file object |
| [in] | spp | ID |
| bool(* ptpmgmt_safile_t::have_key) (const_ptpmgmt_safile sf, uint8_t spp, uint32_t key) |
Verify key exist in an SPP
| [in] | sf | authentication security association file object |
| [in] | spp | ID |
| [in] | key | ID |
| bool(* ptpmgmt_safile_t::read_sa) (ptpmgmt_safile sf, const char *file) |
Read a SA file and parse it
| [in,out] | sf | authentication security association file object |
| [in] | file | name with path |
| bool(* ptpmgmt_safile_t::read_sa_cfg) (ptpmgmt_safile sf, const_ptpmgmt_cfg cfg, const char *section) |
Read a SA file and parse it. Get file name from the configuration file.
| [in,out] | sf | authentication security association file object |
| [in] | cfg | reference to configuration file object |
| [in] | section | (optional) |
| const_ptpmgmt_spp(* ptpmgmt_safile_t::spp) (ptpmgmt_safile sf, uint8_t spp) |
Get SPP by spp ID
| [in,out] | sf | authentication security association file object |
| [in] | spp | ID |