This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi all,

I have put the encoding format in the proto_tree_add_item as ENC_BIG_ENDIAN. Will it show the values as calculated for Bid Endian when I call the corresponding dissector function for that PDU ? For example, 0x0102 will have its value displayed as 0x0201??

Please give a feedback .

asked 13 Jun '14, 04:36

Amit%20Bhanja's gravatar image

Amit Bhanja
11224
accept rate: 0%


If you have a 2-byte field, where the first byte is 0x01 and the second byte is 0x02, then:

  • if you add that two-byte field with ENC_BIG_ENDIAN, its value will be 0x0102;
  • if you add that two-byte field with ENC_LITTLE_ENDIAN, its value will be 0x0201.
permanent link

answered 13 Jun '14, 17:01

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×173
×16
×4

question asked: 13 Jun '14, 04:36

question was seen: 3,629 times

last updated: 13 Jun '14, 17:01

p​o​w​e​r​e​d by O​S​Q​A