diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-02 23:45:11 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-03 06:45:46 +0000 |
commit | 618c27b5e637c06d55a099696f80d53c3edbd827 (patch) | |
tree | 84aa91e14481390bfd94ae40e45457b83787dd22 /capture_info.c | |
parent | 04c05a21e34cec326f1aff2f5f8a6e74e1ced984 (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 'capture_info.c')
-rw-r--r-- | capture_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/capture_info.c b/capture_info.c index 34ec44c1bf..e928691fd8 100644 --- a/capture_info.c +++ b/capture_info.c @@ -57,6 +57,7 @@ #include <epan/dissectors/packet-enc.h> #include <epan/dissectors/packet-i2c.h> #include <epan/dissectors/packet-ax25-kiss.h> +#include <epan/dissectors/packet-pktap.h> #include <wsutil/filesystem.h> @@ -361,6 +362,9 @@ capture_info_packet(packet_counts *counts, gint wtap_linktype, const guchar *pd, /* XXX - some ATM drivers on FreeBSD might prepend a 4-byte ATM pseudo-header to DLT_ATM_RFC1483, with LLC header following; we might have to implement that at some point. */ + case WTAP_ENCAP_PKTAP: + capture_pktap(pd, caplen, counts); + break; } } |