session table can search session by tuple6 or tuple4 or id
This commit is contained in:
@@ -953,9 +953,9 @@ struct session *session_manager_lookup_session(struct session_manager *mgr, cons
|
||||
switch (key.ip_proto)
|
||||
{
|
||||
case IPPROTO_UDP:
|
||||
return session_table_find_tuple(mgr->udp_sess_table, &key);
|
||||
return session_table_find_tuple6(mgr->udp_sess_table, &key);
|
||||
case IPPROTO_TCP:
|
||||
return session_table_find_tuple(mgr->tcp_sess_table, &key);
|
||||
return session_table_find_tuple6(mgr->tcp_sess_table, &key);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user