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] signedness of comparison functions in ftype-integer.c

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


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 03 Jan 2007 09:19:59 -0800

Martin Mathieson wrote:

For the more general problem, I see 2 possible solutions:
(1) have both signed and values in the union, and use the appropriate
signed or unsigned parts of the union in the comparison functions
(2) leave the union as it is with unsigned members, cast values in all
the signed versions instead of the unsigned versions

I vote for solution 1 (and have everything that adds a signed value to the protocol tree set the signed value in the union).

  • Follow-Ups:
    • Re: [Wireshark-dev] signedness of comparison functions in ftype-integer.c
      • From: Martin Mathieson
  • References:
    • [Wireshark-dev] signedness of comparison functions in ftype-integer.c
      • From: Martin Mathieson
  • Prev by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 20247: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-ssl.c
  • Next by Date: [Wireshark-dev] Building 0.99.4 under MacOS X (fixes)
  • Previous by thread: [Wireshark-dev] signedness of comparison functions in ftype-integer.c
  • Next by thread: Re: [Wireshark-dev] signedness of comparison functions in ftype-integer.c
  • Index(es):
    • Date
    • Thread

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