diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-12 04:44:35 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-08-12 04:44:35 +0000 |
commit | 40084ae7753e009353606ee40305cdafb3d1b88f (patch) | |
tree | 6d6b85f9c2dd3a8f248f104e4d79dd0b8c8f6769 /capture_info.c | |
parent | 81670aaf1103819ae2a7a334061d241db8a0e1a3 (diff) |
From Alexey Neyman:
Implement dissector for IPMB (DLT_IPMB_LINUX, 209).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25986 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_info.c')
-rw-r--r-- | capture_info.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_info.c b/capture_info.c index 9b7a51ea05..1e0c7cae4a 100644 --- a/capture_info.c +++ b/capture_info.c @@ -57,6 +57,7 @@ #include <epan/dissectors/packet-ipfc.h> #include <epan/dissectors/packet-arcnet.h> #include <epan/dissectors/packet-enc.h> +#include <epan/dissectors/packet-i2c.h> static void capture_info_packet( packet_counts *counts, gint wtap_linktype, const guchar *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header); @@ -88,6 +89,8 @@ void capture_info_open(capture_options *capture_opts) info_data.counts.vines = 0; info_data.counts.other = 0; info_data.counts.arp = 0; + info_data.counts.i2c_event = 0; + info_data.counts.i2c_data = 0; info_data.wtap = NULL; info_data.ui.counts = &info_data.counts; @@ -334,6 +337,9 @@ capture_info_packet(packet_counts *counts, gint wtap_linktype, const guchar *pd, case WTAP_ENCAP_PPI: capture_ppi(pd, caplen, counts); break; + case WTAP_ENCAP_I2C: + capture_i2c(pseudo_header, 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. */ |