Adjust thread index type to uint16 for future expansion & Organize stellar directory files

This commit is contained in:
luwenpeng
2024-04-25 16:48:50 +08:00
parent 17ca476c24
commit 611fda598f
22 changed files with 232 additions and 222 deletions

View File

@@ -90,7 +90,6 @@ uint16_t packet_get_payload_len(const struct packet *pkt);
int packet_need_drop(const struct packet *pkt);
void packet_set_drop(struct packet *pkt);
void packet_set_ctrl(struct packet *pkt);
int packet_is_ctrl(const struct packet *pkt);
void packet_set_direction(struct packet *pkt, int dir);

View File

@@ -60,6 +60,10 @@ enum session_stat
STAT_DUP_PKTS_BYPASS,
STAT_DUP_BYTES_BYPASS,
STAT_INJ_PKTS_FAIL, // TODO
STAT_INJ_PKTS_SUSS, // TODO
STAT_INJ_BYTES_SUSS, // TODO
// control packet
STAT_CTRL_PKTS_RX, // TODO
STAT_CTRL_BYTES_RX, // TODO

View File

@@ -8,7 +8,7 @@ extern "C"
#include <stdint.h>
uint8_t stellar_get_current_thread_index();
uint16_t stellar_get_current_thread_index();
#ifdef __cplusplus
}