初始化health check module
This commit is contained in:
@@ -52,6 +52,7 @@ char gateway_address[HC_LOCAL_ADDRESS_LEN];
|
||||
uint8_t default_gw_mac[HC_MAC_LEN];
|
||||
|
||||
static int get_mac_by_addr(char *addr, uint8_t *buf);
|
||||
static int health_check_session_foreach();
|
||||
|
||||
static struct session_iterm *health_check_get_iterm_by_id(int session_id)
|
||||
{
|
||||
@@ -266,7 +267,7 @@ static void *_health_check_session_foreach(void *arg)
|
||||
bfd_vtysh_close(&client);
|
||||
}
|
||||
|
||||
int health_check_session_foreach()
|
||||
static int health_check_session_foreach()
|
||||
{
|
||||
pthread_t pid;
|
||||
pthread_create(&pid, NULL, _health_check_session_foreach, NULL);
|
||||
|
||||
Reference in New Issue
Block a user