add support for retrieving pcap packet timestamps
This commit is contained in:
@@ -121,6 +121,16 @@ enum packet_action packet_get_action(const struct packet *pkt)
|
||||
return pkt->meta.action;
|
||||
}
|
||||
|
||||
void packet_set_timeval(struct packet *pkt, const struct timeval *tv)
|
||||
{
|
||||
pkt->meta.tv = *tv;
|
||||
}
|
||||
|
||||
const struct timeval *packet_get_timeval(const struct packet *pkt)
|
||||
{
|
||||
return &pkt->meta.tv;
|
||||
}
|
||||
|
||||
void packet_set_user_data(struct packet *pkt, void *data)
|
||||
{
|
||||
pkt->user_data = data;
|
||||
|
||||
Reference in New Issue
Block a user