summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-bacapp.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-04-05 02:18:28 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-04-05 02:18:28 +0000
commita148a936b180524ac44a4b4f195d8ea6774bf216 (patch)
treebc6702c6b4f97c85e877f9814108cd07df485861 /epan/dissectors/packet-bacapp.h
parentb8acdc8ee042ece5e8ad9adf629405006ee9fef1 (diff)
downloadwireshark-a148a936b180524ac44a4b4f195d8ea6774bf216.tar.gz
From Felix Kraemer: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5694 :
This patch adds the capability to create BACnet statistics trees. Find the respective menu items under 'Statistics->BACnet'. Packets can be sorted by different criteria: - Src/Dst IP adresses - Instance ID - Object Type - Service From me: - Don't use C++/C99-style comments. - Name variables for tick_stat_node() don't need to be static. - Change updateBacnetInfoValue() to require 'data' to be ep_ allocated. Change the couple of calls that did not send in ep_ allocated data to do so. - Change one or two functions to be static. - Do not use (memory-unsafe) g_sprintf(). - Use ep_strconcat() instead of leaking memory with g_strconcat(). - Put back one if(tree) that doesn't appear to do any harm. - Remove variable declarations and #includes from the header file. svn path=/trunk/; revision=36468
Diffstat (limited to 'epan/dissectors/packet-bacapp.h')
-rw-r--r--epan/dissectors/packet-bacapp.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bacapp.h b/epan/dissectors/packet-bacapp.h
new file mode 100644
index 0000000000..cd2e1d560e
--- /dev/null
+++ b/epan/dissectors/packet-bacapp.h
@@ -0,0 +1,42 @@
+/* packet-bacapp.h
+ * by fkraemer, SAUTER
+ *
+ * $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 __PACKET_BACNET_H__
+#define __PACKET_BACNET_H__
+
+#define BACINFO_SERVICE 0
+#define BACINFO_INVOKEID 1
+#define BACINFO_INSTANCEID 2
+#define BACINFO_OBJECTID 4
+
+
+/* Used for BACnet statistics */
+typedef struct _bacapp_info_value_t {
+ gchar *service_type;
+ gchar *invoke_id;
+ gchar *instance_ident;
+ gchar *object_ident;
+} bacapp_info_value_t;
+
+#endif /* __PACKET_BACNET_H__ */