summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-04-24 11:40:00 +0800
committerluwenpeng <[email protected]>2024-06-24 14:31:22 +0800
commitd8963af5f8c68fc4aa14eebb9ef526017dd2c723 (patch)
tree5bb08e0d51750ddc8433b4f5cde595b42aa6ef64 /include
parentffead24e4598a727f285e75551ff1755f193a30b (diff)
Add packet_build.cpp support imitate_tcp_packet() / imitate_udp_packet()
Diffstat (limited to 'include')
-rw-r--r--include/stellar/packet.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h
index 16efe2a..0ceed05 100644
--- a/include/stellar/packet.h
+++ b/include/stellar/packet.h
@@ -24,15 +24,12 @@ enum packet_direction packet_get_direction(const struct packet *pkt);
enum packet_action
{
- PACKET_ACTION_FORWARD = 0, // must be zero
+ PACKET_ACTION_FORWARD = 0,
PACKET_ACTION_DROP = 1,
- PACKET_ACTION_DEFER = 2, // TODO
};
void packet_set_action(struct packet *pkt, enum packet_action action);
enum packet_action packet_get_action(const struct packet *pkt);
-uint64_t packet_get_session_id(const struct packet *pkt);
-
const char *packet_get_raw_data(const struct packet *pkt);
uint16_t packet_get_raw_len(const struct packet *pkt);