Hi I'm creating a dissector but I have some problems. I'm doing it in c. In my protocol I have the value "length" thais is encoded with either 1 or 2 bytes. To obtain the value of this field (designated as v) I have to consider : If v1 < 127 then v = v1 with one byte encoding • If v1 128 then v is encoded within the first and the second byte (little-endian byte order) the value of v is: how can I implement this so I can add to proto_tree the value "length2 ??? asked 14 Dec '16, 14:53 mat656 edited 15 Dec '16, 05:53 |
One Answer:
By:
answered 14 Dec '16, 18:10 Guy Harris ♦♦ edited 14 Dec '16, 18:10 |