diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-12-06 22:56:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-12-06 22:56:37 +0000 |
commit | 0b1f2585c544c668b346d407286ad2f845b670d7 (patch) | |
tree | 382b13cd5836d6cc644222caddc0c6bf35fca1ff /capture_info.c | |
parent | d00581f4307ed9dcf7d7326653055c13e89363ee (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.c | 6 |
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. */ |