diff options
| author | luwenpeng <[email protected]> | 2024-08-23 16:04:07 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-08-23 16:05:59 +0800 |
| commit | 2634d701085ba2b8f754f6c39a6b347cb18c4999 (patch) | |
| tree | 7f568fcc1cedd4fcbd5c5bc284f6af893e413777 /include | |
| parent | 6808e6ba29698a544436f1e6f4e8c8261b641d22 (diff) | |
add support for retrieving pcap packet timestamps
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h index efd0be2..4e588b0 100644 --- a/include/stellar/packet.h +++ b/include/stellar/packet.h @@ -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); |
