13 lines
282 B
C
13 lines
282 B
C
#include "internal/ping/tracker.h"
|
|
|
|
void
|
|
ping_tracker_record_send(struct ping_tracker *t, uint16_t seq,
|
|
const struct timespec *ts)
|
|
{
|
|
struct ping_tracker_slot *slot;
|
|
|
|
slot = &t->slots[seq % PING_TRACKER_SLOTS];
|
|
slot->ts = *ts;
|
|
slot->flags = TRACKER_SLOT_USED;
|
|
t->nb_sent++;
|
|
}
|