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: [Wireshark-dev] where guint is defined in FreeBSD

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


From: Mayank Jain <mayank@xxxxxxxxxxxxx>
Date: Thu, 03 Jan 2008 18:16:19 +0530

Its recommended to use guint instead of u_int


Don't use "uchar", "u_char", "ushort", "u_short", "uint", "u_int",
"ulong", "u_long" or "boolean"; they aren't defined on all platforms.
If you want an 8-bit unsigned quantity, use "guint8"; if you want an
8-bit character value with the 8th bit not interpreted as a sign bit,
use "guchar"; if you want a 16-bit unsigned quantity, use "guint16";
if you want a 32-bit unsigned quantity, use "guint32"; and if you want
an "int-sized" unsigned quantity, use "guint"; if you want a boolean,
use "gboolean".  Use "%d", "%u", "%x", and "%o" to print those types;
don't use "%ld", "%lu", "%lx", or "%lo", as longs are 64 bits long on
many platforms, but "guint32" is 32 bits long.

http://anonsvn.wireshark.org/wireshark/trunk/doc/README.developer


I am not able to find guint in FreeBSD. in types.h Can anybody tell me where can I find this.
--
----------
Thanks
Regards
Mayank Jain
http://mayankjain.110mb.com/
+91-9818390836

  • Follow-Ups:
    • Re: [Wireshark-dev] where guint is defined in FreeBSD
      • From: Abhik Sarkar
  • Prev by Date: [Wireshark-dev] wireshark-0.99.7 build stopped under HP-UX 11.11
  • Next by Date: Re: [Wireshark-dev] where guint is defined in FreeBSD
  • Previous by thread: Re: [Wireshark-dev] wireshark-0.99.7 build stopped under HP-UX 11.11
  • Next by thread: Re: [Wireshark-dev] where guint is defined in FreeBSD
  • Index(es):
    • Date
    • Thread

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