This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tsg-service-chaining-…/platform/include/health_check.h
2024-07-16 17:25:55 +08:00

40 lines
898 B
C

#ifndef _HEALTH_CHECK_H
#define _HEALTH_CHECK_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "policy.h"
void health_check_session_init(const char *profile);
// return 0 : success
// return -1 : key exist
// struct health_check *policy : need deep copy
uint64_t health_check_session_add(int profile_id, int vsys_id, const struct health_check *policy);
// return 0 : success
// return -1 : key not exist
int health_check_session_del(uint64_t session_id, int profile_id);
// return 1 : active
// return 0 : inactive
// return -1 : key not exist
int health_check_session_get_status(uint64_t session_id);
// return 0 : success
// return -1 : key not exist
int health_check_session_set_status(uint64_t session_id, int is_active);
// return 0 : success
// return -1 : key not exist
int health_check_session_get_mac(uint64_t session_id, u_char mac[]);
#ifdef __cplusplus
}
#endif
#endif