Export tuple.h / packet.h / session.h to the include directory

This commit is contained in:
luwenpeng
2024-04-10 11:40:26 +08:00
parent a5a133bf91
commit 24e109e34f
51 changed files with 1238 additions and 1067 deletions

View File

@@ -155,11 +155,10 @@ void session_transition_log(struct session *sess, enum session_state curr_state,
return;
}
char buff[128] = {0};
char reason[128] = {0};
tuple6_to_str(session_get_tuple(sess), buff, sizeof(buff));
session_inputs_to_str(inputs, reason, sizeof(reason));
SESSION_TRANSITION_LOG_INFO("%s session %lu %s (%s) %s -> %s",
session_type_to_str(session_get_type(sess)), session_get_id(sess), buff, reason,
session_type_to_str(session_get_type(sess)),
session_get_id(sess), session_get_tuple_str(sess), reason,
session_state_to_str(curr_state), session_state_to_str(next_state));
}