Wireshark mailing list archives
Re: Iteration in dissectors?
From: Chris Maynard <Chris.Maynard () gtech com>
Date: Mon, 23 Jan 2012 00:07:06 +0000 (UTC)
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-request () wireshark org?subject=unsubscribe
Current thread:
- Iteration in dissectors? Tyson Key (Jan 22)
- Re: Iteration in dissectors? Chris Maynard (Jan 22)
- Re: Iteration in dissectors? Tyson Key (Jan 22)
- Re: Iteration in dissectors? Chris Maynard (Jan 22)
- Re: Iteration in dissectors? Tyson Key (Jan 23)
- Re: Iteration in dissectors? Tyson Key (Jan 22)
- Re: Iteration in dissectors? Chris Maynard (Jan 22)
