mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 20:01:35 +01:00
Added Timestamp conversion to std::chrono::microseconds. BaseSniffer is now movable.
This commit is contained in:
@@ -58,8 +58,8 @@ void PacketWriter::write(PDU &pdu) {
|
||||
gettimeofday(&tm, 0);
|
||||
struct pcap_pkthdr header = {
|
||||
tm,
|
||||
buffer.size(),
|
||||
buffer.size()
|
||||
static_cast<bpf_u_int32>(buffer.size()),
|
||||
static_cast<bpf_u_int32>(buffer.size())
|
||||
};
|
||||
pcap_dump((u_char*)dumper, &header, &buffer[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user