Tyson Key <tyson.key@...> writes:

OK, what about this:

    for (rwe_pos = 0; rwe_pos < tvb_get_guint8(tvb, 12); rwe_pos++) {
        proto_tree_add_item(felica_tree, hf_felica_block_nbr, tvb, 14 +
2*rwe_pos, 1, ENC_BIG_ENDIAN);
    }

... or if you want the 0x80 bytes highlighted, try this:

    for (rwe_pos = 0; rwe_pos < tvb_get_guint8(tvb, 12); rwe_pos++) {
        proto_tree_add_uint(felica_tree, hf_felica_block_nbr, tvb, 13 +
2*rwe_pos, 2, tvb_get_guint8(tvb, 14 + 2*rwe_pos);
    }

- Chris


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

Reply via email to