aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mstp.h
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-05-14 05:44:42 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-05-14 05:44:42 +0000
commit23df06b7a6ea081916240365ed4fea37540b51d9 (patch)
treeeeb444945c4e86a2f4229f6517e59f513491fed6 /epan/dissectors/packet-mstp.h
parent44af6ef887427d09d1f3e0465b964fd1c4395909 (diff)
From Steve Karg:
Added MS/TP decoding for the WTAP BACnet MS/TP datalink, and added decoding for BACnet MS/TP datalink from a Cimetrics U+4 which spews SNAP protocol packets. svn path=/trunk/; revision=25291
Diffstat (limited to 'epan/dissectors/packet-mstp.h')
-rw-r--r--epan/dissectors/packet-mstp.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mstp.h b/epan/dissectors/packet-mstp.h
new file mode 100644
index 0000000000..9bca4059cf
--- /dev/null
+++ b/epan/dissectors/packet-mstp.h
@@ -0,0 +1,64 @@
+/* packet-mstp.h
+ * Routines for BACnet MS/TP datalink dissection
+ * Copyright 2008 Steve Karg <skarg@users.sourceforge.net> Alabama
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * 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 __MSTP_H__
+#define __MSTP_H__
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#if HAVE_ICONV
+#include <iconv.h>
+#endif
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <glib.h>
+
+#include <epan/packet.h>
+
+#ifndef min
+#define min(a,b) (((a)<(b))?(a):(b))
+#endif
+
+/**
+ * Dissects the BACnet MS/TP packet after the preamble,
+ * starting with the MS/TP Frame type octet. Passes
+ * the PDU, if there is one, to the BACnet dissector.
+ * @param tvb
+ * @param pinfo
+ * @param tree
+ * @param subtree
+ * @param offset
+ * @return none
+ */
+void
+dissect_mstp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *subtree, gint offset);
+
+#endif /* __MSTP_H__ */
+
+