12 #ifndef _H_agt_callhome 13 #define _H_agt_callhome 39 #include <xmlstring.h> 50 #ifndef _H_status_enum 83 typedef struct agt_callhome_cb_t_ {
226 const xmlChar *ch_addr,
263 #endif // WITH_CALLHOME control block for each client for a callhome connection
Definition: agt_callhome.h:83
void agt_callhome_cleanup(void)
Cleanup the Callhome module.
Definition: agt_callhome.c:691
dlq provides general double-linked list and queue support:
status_t agt_callhome_add_server_cli(const xmlChar *valstr, agt_ch_proto_t ch_proto)
Add a CallHome server entry from the –callhome-server CLI parm.
Definition: agt_callhome.c:768
xmlChar * ch_client_addr
callhome client address
Definition: agt_callhome.h:97
status_t agt_callhome_init(void)
Initialize the Callhome module.
Definition: agt_callhome.c:567
status_t agt_callhome_init2(void)
Initialize the Callhome module (Init phase II)
Definition: agt_callhome.c:609
boolean ch_from_cli
callhome entry is from CLI config, F: from YANG
Definition: agt_callhome.h:127
boolean ch_connecting
callhome is connecting
Definition: agt_callhome.h:121
uint16 ch_retry_max
callhome retry max tries
Definition: agt_callhome.h:109
const xmlChar * ch_subsys_path
back-ptr to global subsystem path config
Definition: agt_callhome.h:91
uint16 ch_retry_interval
callhome retry interval
Definition: agt_callhome.h:106
uint16 ch_client_port
callhome client port
Definition: agt_callhome.h:103
status_t agt_callhome_remove_server(const xmlChar *ch_name)
Remove a CallHome server entry added from a YANG module at run-time.
Definition: agt_callhome.c:1031
boolean ch_enabled
begin state, callhome enabled flag
Definition: agt_callhome.h:118
uint16 ch_retry_count
retry connection count if reconnect in progress
Definition: agt_callhome.h:130
boolean ch_connected
callhome is connected
Definition: agt_callhome.h:124
boolean ch_reconnect
enable callhome reconnects
Definition: agt_callhome.h:115
xmlChar * ch_sshd_config
callhome sshd config
Definition: agt_callhome.h:100
pid_t ch_pid
callhome child process ID running SSHd server
Definition: agt_callhome.h:136
status_t
global error return code
Definition: status_enum.h:186
Multi-Protocol Network Management Server.
const xmlChar * ch_sshd_path
back-ptr to global sshd path config
Definition: agt_callhome.h:88
agt_ch_proto_t ch_proto
callhome protocol to use
Definition: agt_callhome.h:112
agt_ch_proto_t
server callhome protocol
Definition: agt.h:698
xmlChar * ch_name
callhome server name
Definition: agt_callhome.h:94
status_t agt_callhome_remove_all_servers(void)
Remove all CallHome server entries added from a YANG module at run-time.
Definition: agt_callhome.c:1071
status_t agt_callhome_init_postcli(void)
Initialize the Callhome module POST CLI parms.
Definition: agt_callhome.c:587
status_t agt_callhome_add_server(const xmlChar *ch_name, const xmlChar *ch_addr, uint16 ch_port, agt_ch_proto_t ch_proto, boolean start_now)
Add a CallHome server entry from a YANG module at run-time.
Definition: agt_callhome.c:924
uint32 ch_timer_id
timer ID used for reconnect interval
Definition: agt_callhome.h:133
global error status code enumerations
boolean agt_callhome_connecting(const xmlChar *addr)
Check if the source address is connecting in a callhome session.
Definition: agt_callhome.c:727