aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icmp.h
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-04-05 20:21:59 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-04-05 20:21:59 +0000
commit595e5e1c1d150812de9cc0d1549acd0ed5d8770d (patch)
treec0101435e5778ab84ef23a5809fa0332e5430fbf /epan/dissectors/packet-icmp.h
parent4f462b3d09e661d64714187636ddb851457c1c39 (diff)
Add ICMP tap support, and add a tshark tap to measure such things as:
* Number of ICMP echo requests, replies, lost replies and percent loss. * Min, Max, Average SRT (Service Response Time), and standard deviation. (This is my first tap, so hopefully I didn't miss something, but we'll see ...) TODO: Add a Wireshark tap. svn path=/trunk/; revision=36480
Diffstat (limited to 'epan/dissectors/packet-icmp.h')
-rwxr-xr-xepan/dissectors/packet-icmp.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/epan/dissectors/packet-icmp.h b/epan/dissectors/packet-icmp.h
new file mode 100755
index 0000000000..a8ef789f3f
--- /dev/null
+++ b/epan/dissectors/packet-icmp.h
@@ -0,0 +1,32 @@
+/* packet-icmp.h
+ * Definitions for ICMP: http://tools.ietf.org/html/rfc792.
+ *
+ * $Id$
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PACKET_ICMP_H__
+#define __PACKET_ICMP_H__
+
+/* ICMP echo request/reply transaction statistics ... used by ICMP tap(s) */
+typedef struct _icmp_transaction_t {
+ guint32 rqst_frame;
+ guint32 resp_frame;
+ nstime_t rqst_time;
+ double resp_time;
+} icmp_transaction_t;
+
+#endif