rename session_direction to flow_direction
This commit is contained in:
@@ -29,10 +29,16 @@ enum session_type
|
||||
|
||||
enum session_direction
|
||||
{
|
||||
SESSION_DIRECTION_NONE = -1,
|
||||
SESSION_DIRECTION_C2S = 0,
|
||||
SESSION_DIRECTION_S2C = 1,
|
||||
MAX_DIRECTION = 2,
|
||||
SESSION_DIRECTION_INBOUND = 0,
|
||||
SESSION_DIRECTION_OUTBOUND = 1,
|
||||
};
|
||||
|
||||
enum flow_direction
|
||||
{
|
||||
FLOW_DIRECTION_NONE = -1,
|
||||
FLOW_DIRECTION_C2S = 0,
|
||||
FLOW_DIRECTION_S2C = 1,
|
||||
MAX_FLOW_DIRECTION = 2,
|
||||
};
|
||||
|
||||
enum closing_reason
|
||||
@@ -118,18 +124,15 @@ int session_has_dup_traffic(const struct session *sess);
|
||||
enum session_type session_get_type(const struct session *sess);
|
||||
enum session_state session_get_state(const struct session *sess);
|
||||
enum closing_reason session_get_closing_reason(const struct session *sess);
|
||||
enum session_direction session_get_current_direction(const struct session *sess);
|
||||
const struct packet *session_get_1st_packet(const struct session *sess, enum session_direction dir);
|
||||
enum session_direction session_get_direction(const struct session *sess);
|
||||
enum flow_direction session_get_flow_direction(const struct session *sess);
|
||||
const struct packet *session_get_first_packet(const struct session *sess, enum flow_direction dir);
|
||||
|
||||
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 session_direction dir, enum session_stat stat);
|
||||
uint64_t session_get_stat(const struct session *sess, enum flow_direction dir, enum session_stat stat);
|
||||
|
||||
const char *session_get_tuple_str(const struct session *sess);
|
||||
const char *session_type_to_str(enum session_type type);
|
||||
const char *session_state_to_str(enum session_state state);
|
||||
const char *session_direction_to_str(enum session_direction dir);
|
||||
const char *closing_reason_to_str(enum closing_reason reason);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user