I am writing a dissector for cluster heartbeat packets for NetScaler. I am facing an issue with a field named LVS. Actually it is a 4 byte integer. But it refers to a set of nodes in the view set. The set can be as big as 32. So I have used the following code to show all the nodes in the LVS (from the trace) declare array variable - static int hf_hb_cl_lvs[32]; Register this array variable in the register function. To display in the tree:: for(i=0; i<31; i++) { if(hf_hb_cl_lvs[i] != 0x00000000) { proto_tree_add_item(.................parameters.................); } offset+=4; } The issue is that this piece of code adds only the first node from the byte stream to the tree in the display. It does not add any node beyond that. Please help me with the code here?? Regards, Sidharth This question is marked "community wiki". asked 13 Jul '11, 07:02 sid |
One Answer:
As indicated in Jaap's answer to your other question, you only need one
Obviously you’d need to change this (names, data types, strings, etc.) to make it logically fit your data, but this represents a starting point for similar tasks. answered 22 Jul ‘11, 06:41 multipleinte… |