add support for retrieving pcap packet timestamps

This commit is contained in:
luwenpeng
2024-08-23 16:04:07 +08:00
parent 6808e6ba29
commit 2634d70108
6 changed files with 31 additions and 8 deletions

View File

@@ -174,6 +174,9 @@ enum packet_action
void packet_set_action(struct packet *pkt, enum packet_action action);
enum packet_action packet_get_action(const struct packet *pkt);
void packet_set_timeval(struct packet *pkt, const struct timeval *tv);
const struct timeval *packet_get_timeval(const struct packet *pkt);
const char *packet_get_raw_data(const struct packet *pkt);
uint16_t packet_get_raw_len(const struct packet *pkt);