refactor: use session_manager_discard_session() instead of session_set_discard()
This commit is contained in:
@@ -135,7 +135,6 @@ uint64_t session_get_id(const struct session *sess);
|
||||
uint64_t session_get_timestamp(const struct session *sess, enum session_timestamp type);
|
||||
uint64_t session_get_stat(const struct session *sess, enum flow_type type, enum session_stat stat);
|
||||
const char *session_get_readable_addr(const struct session *sess);
|
||||
void session_set_discard(struct session *sess);
|
||||
void session_set_exdata(struct session *sess, int idx, void *ex_ptr);
|
||||
void *session_get_exdata(const struct session *sess, int idx);
|
||||
|
||||
@@ -145,6 +144,7 @@ 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);
|
||||
void session_manager_discard_session(struct session_manager *sess_mgr, uint16_t thread_id, struct session *sess);
|
||||
|
||||
void session_manager_on_packet_forward(struct packet *pkt, struct module *mod);
|
||||
void session_manager_on_packet_output(struct packet *pkt, struct module *mod);
|
||||
|
||||
Reference in New Issue
Block a user