summaryrefslogtreecommitdiff
path: root/plugins/ethercat/packet-nv.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-10-14 15:44:05 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-10-14 15:44:05 +0000
commit3238f6b87acd708d842db6264b6d64443c2b8fbc (patch)
tree3282e6108588a19f6e09ab7fd4bd0fe35d6cbf73 /plugins/ethercat/packet-nv.h
parent239f4e2ebb6409a6e3f2132ecef3378dfbf95d91 (diff)
downloadwireshark-3238f6b87acd708d842db6264b6d64443c2b8fbc.tar.gz
Ethercat plugin
Author : Richard Kuemmel <r.kuemmel[AT]beckhoff.de> Updates and bugfixes: Peter Johansson <peterjohansson73[AT]gmail.com> svn path=/trunk/; revision=23173
Diffstat (limited to 'plugins/ethercat/packet-nv.h')
-rw-r--r--plugins/ethercat/packet-nv.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/ethercat/packet-nv.h b/plugins/ethercat/packet-nv.h
new file mode 100644
index 0000000000..a25b79e566
--- /dev/null
+++ b/plugins/ethercat/packet-nv.h
@@ -0,0 +1,47 @@
+/* Copyright (c) 2007 by Beckhoff Automation GmbH
+ *
+ * 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_NV_H_
+#define _PACKET_NV_H_
+
+/* Ensure the same data layout for all platforms*/
+#pragma pack(push, 1)
+
+typedef struct _ETYPE_88A4_NV_DATA_HEADER
+{
+ guint16 Id;
+ guint16 Hash;
+ guint16 Length;
+ guint16 Quality;
+} ETYPE_88A4_NV_DATA_HEADER, *PETYPE_88A4_NV_DATA_HEADER;
+
+
+typedef struct _ETYPE_88A4_NV_HEADER
+{
+ guint8 Publisher[6];
+ guint16 CountNV;
+ guint16 CycleIndex;
+ guint16 Reserved;
+} ETYPE_88A4_NV_HEADER, *PETYPE_88A4_NV_HEADER, NvParserHDR, *PNvParserHDR;
+
+#pragma pack(pop)
+
+#endif /* _PACKET_NV_H_*/