support packet_tag_set/get()

This commit is contained in:
luwenpeng
2024-11-22 10:30:51 +08:00
parent 5dbaa67160
commit 6c9e6e3fbe
4 changed files with 28 additions and 4 deletions

View File

@@ -183,7 +183,10 @@ const char *packet_get_payload_data(const struct packet *pkt);
uint16_t packet_get_payload_len(const struct packet *pkt);
void packet_set_exdata(struct packet *pkt, int idx, void *ex_ptr);
void *packet_get_exdata(struct packet *pkt, int idx);
void *packet_get_exdata(const struct packet *pkt, int idx);
void packet_tag_set(struct packet *pkt, uint64_t key_bits, uint64_t val_bits);
void packet_tag_get(const struct packet *pkt, uint64_t *key_bits, uint64_t *val_bits);
/******************************************************************************
* packet manager