add_rr_to_tree()
add_opt_rr_to_tree()
proto_tree_add_item(rr_tree, hf_dns_rr_len, tvb, offset, 2, ENC_BIG_ENDIAN);

dissect_dns_answer()
    case T_PTR: /* Domain Name Pointer (12) */
    {
      const gchar  *pname;
      int           pname_len;

      used_bytes = get_dns_name(tvb, cur_offset, 0, dns_data_offset,
&pname, &pname_len);

https://osqa-ask.wireshark.org/questions/24732/how-to-get-data-inside-proto_tree-tree/

I understand from Graham's response above that as much as I'd like to find
proto_tree_get_item, it doesn't exist.

How can I get the value of hf_dns_rr_len that is set in one of the
add_xxx_rr_to_tree() functions when the code is running in
dissect_dns_answer()?


thanks
chuckc
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to