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

Wireshark-bugs: [Wireshark-bugs] [Bug 1430] EtherCAT dissector

Date: Tue, 2 Oct 2007 13:36:50 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1430





------- Comment #31 from anders.blomdell@xxxxxxxxxxxxxx  2007-10-02 13:36 GMT -------
(In reply to comment #30)
> (In reply to comment #29)
> > Anonymous unions are not part of ANSI C!
> 
> There are no anonymous unions in the supplied patch file (2007-10-02 11:35).
> Are you sure you do not have files lingering from the first attachment
> (2007-09-20)?
> 
> / Peter
packet-ams.h declares:

typedef struct
{
   AmsAddr target;
   AmsAddr sender;
   guint16 cmdId;
   guint16 stateFlags;
   guint32 cbData;
   union ErrCodeUnion
   {
      gint32 errCode;
      gint32 hRcv;
   };
   union UserUnion
   {
      gint32 hUser;
      struct
      {
         guint16 fragmentNo;
         guint16 packetNo;
      };
   };
} AmsHead, *PAmsHead;


Looks very anonymous to me.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.