rename session_get0_readable_addr() to session_get_readable_addr()
This commit is contained in:
@@ -30,7 +30,7 @@ const struct tuple6 *session_get_tuple6(const struct session *sess)
|
||||
return &sess->tuple;
|
||||
}
|
||||
|
||||
const char *session_get0_readable_addr(const struct session *sess)
|
||||
const char *session_get_readable_addr(const struct session *sess)
|
||||
{
|
||||
return sess->tuple_str;
|
||||
}
|
||||
@@ -368,7 +368,7 @@ int session_to_str(const struct session *sess, int bref, char *buff, int size)
|
||||
{
|
||||
used += snprintf(buff + used, size - used, "session id: %lu, addr: %s, type: %s, state: %s, dir: %s, c2s_rx_pkts: %lu, s2c_rx_pkts: %lu",
|
||||
session_get_id(sess),
|
||||
session_get0_readable_addr(sess),
|
||||
session_get_readable_addr(sess),
|
||||
session_type_to_str(session_get_type(sess)),
|
||||
session_state_to_str(session_get_current_state(sess)),
|
||||
flow_direction_to_str(session_get_flow_type(sess)),
|
||||
@@ -381,7 +381,7 @@ int session_to_str(const struct session *sess, int bref, char *buff, int size)
|
||||
used += snprintf(buff + used, size - used, "\"id\":%" PRIu64 ",", session_get_id(sess));
|
||||
used += snprintf(buff + used, size - used, "\"start_timestamp_ms\":%" PRIu64 ",", session_get_timestamp(sess, SESSION_TIMESTAMP_START));
|
||||
used += snprintf(buff + used, size - used, "\"last_timestamp_ms\":%" PRIu64 ",", session_get_timestamp(sess, SESSION_TIMESTAMP_LAST));
|
||||
used += snprintf(buff + used, size - used, "\"tuple\":\"%s\",", session_get0_readable_addr(sess));
|
||||
used += snprintf(buff + used, size - used, "\"tuple\":\"%s\",", session_get_readable_addr(sess));
|
||||
used += snprintf(buff + used, size - used, "\"type\":\"%s\",", session_type_to_str(session_get_type(sess)));
|
||||
used += snprintf(buff + used, size - used, "\"state\":\"%s\",", session_state_to_str(session_get_current_state(sess)));
|
||||
used += snprintf(buff + used, size - used, "\"closing_reason\":\"%s\",", closing_reason_to_str(session_get_closing_reason(sess)));
|
||||
|
||||
Reference in New Issue
Block a user