Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Anonymous union in epan/dissectors/packet-scsi-osd.c not valid with Sun C compiler

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Mon, 6 Nov 2006 09:31:32 +0000

please test latest svn    i have changed it to not use anonymous unions/structs


On 11/5/06, Albert Chin <wireshark-dev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
On Solaris 2.6, compiling 0.99.4 with the Sun C compiler fails because
anonymous unions are not valid. epan/dissectors/packet-scsi-osd.c has:
  typedef struct _scsi_osd_extra_data_t {
   guint16 svcaction;
   guint8  gsatype;
   union {
    struct { /* gsatype: attribute list */
     guint32 get_list_length;
     guint32 get_list_offset;
     guint32 get_list_allocation_length;
     guint32 retreived_list_offset;
     guint32 set_list_length;
     guint32 set_list_offset;
    };
   };
  } scsi_osd_extra_data_t;

epan/emem.h had a similar problem awhile ago.

Patch attached.

--
albert chin (china@xxxxxxxxxxxxxxxxxx)



  • References:
    • [Wireshark-dev] Anonymous union in epan/dissectors/packet-scsi-osd.c not valid with Sun C compiler
      • From: Albert Chin
  • Prev by Date: [Wireshark-dev] Where do I get gmodule.h for dissector development
  • Next by Date: [Wireshark-dev] Where do I get gmodule.h for dissector development
  • Previous by thread: [Wireshark-dev] Anonymous union in epan/dissectors/packet-scsi-osd.c not valid with Sun C compiler
  • Next by thread: [Wireshark-dev] Extraneous trailing comma in enum definition
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation