diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-10-14 15:44:05 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-10-14 15:44:05 +0000 |
commit | 3238f6b87acd708d842db6264b6d64443c2b8fbc (patch) | |
tree | 3282e6108588a19f6e09ab7fd4bd0fe35d6cbf73 /plugins/ethercat/packet-nv.h | |
parent | 239f4e2ebb6409a6e3f2132ecef3378dfbf95d91 (diff) | |
download | wireshark-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.h | 47 |
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_*/ |