From b76949b0e4820d4136ad86cdf342964fc879ab60 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Tue, 19 Nov 2024 18:35:40 +0800 Subject: export symbol session_manager_lookup_session_by_packet/id() --- include/stellar/session.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/stellar/session.h b/include/stellar/session.h index a5dae67..5ada791 100644 --- a/include/stellar/session.h +++ b/include/stellar/session.h @@ -150,6 +150,8 @@ void *session_get_exdata(const struct session *sess, int idx); struct session_manager; struct session_manager *module_to_session_manager(struct module *mod); int session_manager_new_session_exdata_index(struct session_manager *sess_mgr, const char *name, exdata_free *func, void *arg); +struct session *session_manager_lookup_session_by_packet(struct session_manager *sess_mgr, uint16_t thread_id, const struct packet *pkt); +struct session *session_manager_lookup_session_by_id(struct session_manager *sess_mgr, uint16_t thread_id, uint64_t sess_id); struct session *packet_exdata_to_session(struct packet *pkt); -- cgit v1.2.3