TSG-13842 tsg-service-chaining-engine服务链中的SF需缓存第三方设备的目的IP和目的MAC

This commit is contained in:
luwenpeng
2023-02-20 15:30:32 +08:00
parent 82ac815b68
commit b1abe96b06
7 changed files with 66 additions and 31 deletions

View File

@@ -15,7 +15,9 @@ struct session_iterm
int session_id; // key
struct health_check policy; // value1: deep copy
int is_active; // value2
int is_active; // value2
char dst_ip[16]; // value3
char dst_mac[32]; // value4
};
void health_check_session_init()
@@ -59,6 +61,22 @@ int health_check_session_set_status(int session_id, int is_active)
return 0;
}
// return 0 : success
// return -1 : key not exist
int health_check_session_get_ip(int session_id, char *ip_buff)
{
// TODO
return 0;
}
// return 0 : success
// return -1 : key not exist
int health_check_session_get_mac(int session_id, char *mac_buff)
{
// TODO
return 0;
}
void health_check_session_foreach()
{
// TODO