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] Get 3 bytes

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


From: "Steven Le" <programminglist@xxxxxxxxx>
Date: Mon, 12 Mar 2007 15:32:29 -0800


I define a header type to be FT_UINT24
&....
....FT_UNIT24, BASE_DEC, NULL,
0x00007ff (bitmasking 3 bytes)

How to get 3 bytes and add it to protocol subtree?
guint32 = tvb_get_leoh24(tvb, 3); ???

guint32 is 32 bits --> so type mismatch???

  • Follow-Ups:
    • Re: [Wireshark-dev] Get 3 bytes
      • From: Stephen Fisher
    • Re: [Wireshark-dev] Get 3 bytes
      • From: Guy Harris
  • Prev by Date: Re: [Wireshark-dev] Bug 491 : time delta behaviour
  • Next by Date: Re: [Wireshark-dev] Get 3 bytes
  • Previous by thread: Re: [Wireshark-dev] proto_add_tree_item versus proto_add_tree_string
  • Next by thread: Re: [Wireshark-dev] Get 3 bytes
  • Index(es):
    • Date
    • Thread

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