How do I capture packets with nanosecond resolution using libpcap v1.6.1? Based on the changelog they added support for the nanosecond resolution in v1.5.0. When I execute tcpdump
and view the cap files, it is still only in microseconds. I tried the previous method of changing
pcap_open_offline_with_tstamp_precision(
fname, PCAP_TSTAMP_PRECISION_MICRO, errbuf)
to
pcap_open_offline_with_tstamp_precision(
fname, PCAP_TSTAMP_PRECISION_NANO, errbuf)
recompiled, and re-installed it but still doesn't work. Now I'm wondering if this has to do with my Linux version (RedHat Enterprise 6.2). If someone could give me any other way or a step by step procedure, it would be very much appreciated.