aboutsummaryrefslogtreecommitdiffstats
path: root/capture_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-12-06 22:56:37 +0000
committerGuy Harris <guy@alum.mit.edu>2005-12-06 22:56:37 +0000
commit0b1f2585c544c668b346d407286ad2f845b670d7 (patch)
tree382b13cd5836d6cc644222caddc0c6bf35fca1ff /capture_info.c
parentd00581f4307ed9dcf7d7326653055c13e89363ee (diff)
Clean up capture_enc(), export it, and use it in the capture window.
svn path=/trunk/; revision=16709
Diffstat (limited to 'capture_info.c')
-rw-r--r--capture_info.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/capture_info.c b/capture_info.c
index 192c64ce0c..66ec62e6c2 100644
--- a/capture_info.c
+++ b/capture_info.c
@@ -54,8 +54,7 @@
#include <epan/dissectors/packet-prism.h>
#include <epan/dissectors/packet-ipfc.h>
#include <epan/dissectors/packet-arcnet.h>
-
-
+#include <epan/dissectors/packet-enc.h>
static void capture_info_packet(
packet_counts *counts, gint wtap_linktype, const guchar *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header);
@@ -216,6 +215,9 @@ capture_info_packet(packet_counts *counts, gint wtap_linktype, const guchar *pd,
case WTAP_ENCAP_FRELAY_WITH_PHDR:
capture_fr(pd, 0, caplen, counts);
break;
+ case WTAP_ENCAP_ENC:
+ capture_enc(pd, caplen, counts);
+ break;
/* 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. */