summaryrefslogtreecommitdiff
path: root/lib/pcap-file.h
Commit message (Collapse)AuthorAgeFilesLines
* pcap-file: Add nanosecond resolution pcap support.Mark Michelson2018-10-051-5/+9
| | | | | | | | | | | | 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>
* dp-packet: Remove ofpbuf dependency.Pravin B Shelar2015-03-031-5/+5
| | | | | | | | | | | | | Currently dp-packet make use of ofpbuf for managing packet buffers. That complicates ofpbuf, by making dp-packet independent of ofpbuf both libraries can be optimized for their own use case. This avoids mapping operation between ofpbuf and dp_packet in datapath upcalls. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* lib/pcap-file: add 'ovs_' prefix to pcap functionsLuigi Rizzo2014-01-231-5/+5
| | | | | | | | | This is done to avoid collisions and confusions with libpcap symbols, like pcap_read() Signed-off-by: Luigi Rizzo <rizzo@iet.unipi.it> Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovs-ofctl: New command "ofp-parse-pcap" to dump OpenFlow from PCAP files.Ben Pfaff2013-12-231-0/+9
| | | | | | | Based on the number of people who ask about Wireshark support for OpenFlow, this is likely to be widely useful. Signed-off-by: Ben Pfaff <blp@nicira.com>
* pcap-file: Add timestamp support for reading and writing pcap files.Ben Pfaff2013-12-231-1/+1
| | | | | | | Only the write support is initially useful, but an upcoming commit will add a user for the read support. Signed-off-by: Ben Pfaff <blp@nicira.com>
* lib: Rename lib/pcap.h to avoid inclusion conflicts.Stephane A. Sezer2013-03-151-0/+30
lib/pcap.h has a name that conflicts with /usr/include/pcap.h. When one wants to include pcap.h from libpcap (i.e.: the one from /usr/include), one may end up with pcap.h from openvswitch. This change renames this header to pcap-file.h and updates all references to this file. This change was tested with `make distcheck`. Signed-off-by: Stephane A. Sezer <sas@cd80.net> Signed-off-by: Ben Pfaff <blp@nicira.com>