aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-02 23:45:11 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-03 06:45:46 +0000
commit618c27b5e637c06d55a099696f80d53c3edbd827 (patch)
tree84aa91e14481390bfd94ae40e45457b83787dd22 /epan/dissectors
parent04c05a21e34cec326f1aff2f5f8a6e74e1ced984 (diff)
Add a capture_pktap() routine and use it.
That way, the packet counts are will be valid when capturing. Change-Id: I0a21cc817d918e7f849620db5ca6dfd84bd2cd87 Reviewed-on: https://code.wireshark.org/review/936 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/Makefile.common1
-rw-r--r--epan/dissectors/packet-pktap.c1
-rw-r--r--epan/dissectors/packet-pktap.h30
3 files changed, 32 insertions, 0 deletions
diff --git a/epan/dissectors/Makefile.common b/epan/dissectors/Makefile.common
index af5bf00a92..e585337978 100644
--- a/epan/dissectors/Makefile.common
+++ b/epan/dissectors/Makefile.common
@@ -1542,6 +1542,7 @@ DISSECTOR_INCLUDES = \
packet-pkixtsp.h \
packet-pkinit.h \
packet-pktc.h \
+ packet-pktap.h \
packet-portmap.h \
packet-ppi.h \
packet-ppi-geolocation-common.h \
diff --git a/epan/dissectors/packet-pktap.c b/epan/dissectors/packet-pktap.c
index 5c08ab3279..6e5c17b0bd 100644
--- a/epan/dissectors/packet-pktap.c
+++ b/epan/dissectors/packet-pktap.c
@@ -34,6 +34,7 @@
#include "packet-frame.h"
#include "packet-eth.h"
+#include "packet-pktap.h"
/* Needed for wtap_pcap_encap_to_wtap_encap(). */
#include <wiretap/pcap-encap.h>
diff --git a/epan/dissectors/packet-pktap.h b/epan/dissectors/packet-pktap.h
new file mode 100644
index 0000000000..82ef757382
--- /dev/null
+++ b/epan/dissectors/packet-pktap.h
@@ -0,0 +1,30 @@
+/* packet-pktap.h
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __PACKET_PKTAP_H__
+#define __PACKET_PKTAP_H__
+
+#include "ws_symbol_export.h"
+
+WS_DLL_PUBLIC
+void capture_pktap(const guchar *, int, packet_counts *);
+
+#endif