diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-08-12 04:44:35 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-08-12 04:44:35 +0000 |
commit | 3eadb385c3280a23cd277d8dbc57a33e4f6aecc3 (patch) | |
tree | 6d6b85f9c2dd3a8f248f104e4d79dd0b8c8f6769 /capture_info.c | |
parent | 5906f69b880d1959763d10490da91bc2ae2b3fb7 (diff) |
From Alexey Neyman:
Implement dissector for IPMB (DLT_IPMB_LINUX, 209).
svn path=/trunk/; revision=25986
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. */ |