TSG-13842 tsg-service-chaining-engine服务链中的SF需缓存第三方设备的目的IP和目的MAC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user