Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] ethercat plugin

From: Andrew Hood <ajhood@xxxxxxxxx>
Date: Thu, 07 Feb 2008 08:45:43 +1100
If you don't have a sufficiently recent C compiler (C99 maybe?), the
ethercat plugin will not compile because of the unnamed struct.

--- plugins/ethercat/packet-ethercat-datagram.h	(revision 24270)
+++ plugins/ethercat/packet-ethercat-datagram.h	(working copy)
@@ -32,10 +32,13 @@
    {
       guint16 adp;
       guint16 ado;
-   };
+   } adp_ado ;
    guint32 addr;
 } EcParserAddrUnion;

+#define adp adp_ado.adp
+#define ado adp_ado.ado
+
 typedef struct _EcParser
 {
    guint8  cmd;

-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who