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] packet-ieee802154.c compilation error

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


From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 03 Sep 2008 20:57:13 +0200

Hello Guy,

Thanks for the extensive analysis of this issue. You come to the same conclusion as I. ^ is converted into/handled as ~ which is not the same in this case. I'll see if I can create a test program showing this issue to file with the report.

Thanx,
Jaap

Guy Harris wrote:
On Sep 2, 2008, at 2:04 PM, Maynard, Chris wrote:

Jaap,
I assume this is the line it's complaining about?:

fcs_ok = (fcs == ieee802154_crc_tvb(tvb,
tvb_reported_length(tvb)-IEEE802154_FCS_LEN));


So I think this is a GCC bug; you might want to file a bug either against Debian or against GCC and note that "{unsigned short} ^ 0xFFFF" is not equivalent to "~{unsigned short}" in an "int longer than short" environment (the first of those doesn't flip the upper N bits of the promoted "unsigned short", the second of those does).


  • References:
    • [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Jaap Keuter
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Maynard, Chris
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Guy Harris
  • Prev by Date: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Next by Date: [Wireshark-dev] buildbot failure in Wireshark (development) on Windows-XP-x86
  • Previous by thread: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Next by thread: [Wireshark-dev] buildbot failure in Wireshark (release) on Windows-XP-x86
  • Index(es):
    • Date
    • Thread

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