]> git.proxmox.com Git - mirror_ovs.git/commit
pcap-file: Add nanosecond resolution pcap support.
authorMark Michelson <mmichels@redhat.com>
Fri, 5 Oct 2018 16:52:40 +0000 (12:52 -0400)
committerBen Pfaff <blp@ovn.org>
Sat, 6 Oct 2018 00:35:07 +0000 (17:35 -0700)
commitb6e840aed03e3f6d1aa726b482140d895f60f90f
tree1893a7a3b24917591591874441db5136c4e7b946
parent2b2532dd4cec6175973aeb34e6e445d59812c1ab
pcap-file: Add nanosecond resolution pcap support.

PCAP header magic numbers are different for microsecond and nanosecond
resolution timestamps. This patch adds support for understanding the
difference and reporting the time correctly with ovs_pcap_read().

When writing pcap files, OVS will always use microsecond resolution, so
no new calculations were added to those functions.

Signed-off-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-dummy.c
lib/pcap-file.c
lib/pcap-file.h
tests/test-conntrack.c
tests/test-flows.c
utilities/ovs-ofctl.c