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

I have created a dissector for cluster heartbeat messages. Everything works okay except the IP addresses. An IP of is displayed by the dissector as

How correct this? Do i need to apply host to network transformation or the other way around??

And most importantly, how to apply that transformation??

Regards, Sidharth

asked 13 Jul '11, 04:53

sid's gravatar image

accept rate: 0%

What is the exact code you're using to fetch the IP address and put it into the protocol tree?

You're not supposed to apply any byte-order transformation to IP addresses.

(13 Jul '11, 10:41) Guy Harris ♦♦

Set the final parameter of proto_tree_add_item() for adding the IP addresses to ENC_LITTLE_ENDIAN (or TRUE if you're working with trunk-1.4 based code).

permanent link

answered 13 Jul '11, 06:21

Jaap's gravatar image

Jaap ♦
accept rate: 14%

edited 14 Jul '11, 01:43

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 13 Jul '11, 04:53

question was seen: 2,197 times

last updated: 14 Jul '11, 01:43

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