From 3eadb385c3280a23cd277d8dbc57a33e4f6aecc3 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Tue, 12 Aug 2008 04:44:35 +0000 Subject: From Alexey Neyman: Implement dissector for IPMB (DLT_IPMB_LINUX, 209). svn path=/trunk/; revision=25986 --- capture_info.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'capture_info.c') 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 #include #include +#include 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. */ -- cgit v1.2.1