Hi,
How to extract a string from packet (of Hex values)?
I know the string length.
I tried doing the following. But I am still not able to find it.
guint16 loc_name_length =0;
/*Location Name Length*/
proto_tree_add_item(oqtp_tree, hf_loc_name_length, tvb, packet_field_offset, 1, FALSE);
loc_name_length = tvb_get_ntohs(tvb, packet_field_offset);
packet_field_offset += 1;
/*Location Name*/
proto_tree_add_item(oqtp_tree, hf_loc_name, tvb, packet_field_offset,loc_name_length ,FALSE);
packet_field_offset = packet_field_offset + loc_name_length + 1;
Any help on this would be appreciated.
Regards,
Darshan