summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-05-29 00:21:05 +0800
committeryangwei <[email protected]>2024-05-30 06:00:30 +0800
commita7adf2fe90bf44403dc486ae10e1af5ae6cafc37 (patch)
tree8ff4c17bba47d07d0ab117315f8f79d70aeeb54a /include
parentaf179a089c5fe9c0a4a681c2845eccc97bdf0565 (diff)
✨ feat(packet direction unknonw): set session in session packet
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stellar/session.h b/include/stellar/session.h
index f28e46d..417fc2f 100644
--- a/include/stellar/session.h
+++ b/include/stellar/session.h
@@ -112,6 +112,7 @@ const struct packet *session_get0_current_packet(struct session *sess);
#define PACKET_DIRECTION_C2S 0
#define PACKET_DIRECTION_S2C 1
+#define PACKET_DIRECTION_UNKNOWN 2
int packet_get_direction(const struct packet *pkt);
const char *packet_get0_data(const struct packet *pkt, size_t *data_len);
int packet_arrive_time(const struct packet *pkt, struct timeval *ts);