As far as I know, libpcap puts a timestamp for each package.
No, libpcap gets the timestamp for a package from the OS package capture mechanism it uses - which on Linux ...
... Sockets PF_PACKET.
Linux kernel time marks incoming packets. PF_PACKET sockets have several ways to read from them:
- gets a standard socket, for which you can either get a timestamp with an explicit ioctl (so that you can’t extract it into the user area, but you cannot avoid the time of the kernel packing the package in the first place; libpcap, when using a regular socket, always asks time stamp);
- , .
Libpcap , ; , , , . .
user862787