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] where guint is defined in FreeBSD

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


From: "Abhik Sarkar" <sarkar.abhik@xxxxxxxxx>
Date: Thu, 3 Jan 2008 16:56:35 +0400

guint comes from glib (from glib/gtypes.h via glib.h>

On Jan 3, 2008 4:46 PM, Mayank Jain <mayank@xxxxxxxxxxxxx> wrote:
> 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
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>

  • References:
    • [Wireshark-dev] where guint is defined in FreeBSD
      • From: Mayank Jain
  • Prev by Date: [Wireshark-dev] where guint is defined in FreeBSD
  • Next by Date: Re: [Wireshark-dev] crash with Preference in Plugin
  • Previous by thread: [Wireshark-dev] where guint is defined in FreeBSD
  • Next by thread: [Wireshark-dev] Timing information in Wireshark follow tcp stream
  • Index(es):
    • Date
    • Thread

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