artnet: Fix ArtPollReply universe calculation
The SubSwitch field holds bit 7-4 of the 15bit port address, but it holds it in bit 3-0 so we have to shift it 4 bits instead of taking bit 7-4 of the SubSwitch field. Change-Id: I7841d64749e8a561e4ee928a23a3c46cb5be34cb Signed-off-by: Erwin Rol <erwin@erwinrol.com> Reviewed-on: https://code.wireshark.org/review/35910 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
b3c9244c82
commit
824fef51aa
|
@ -2018,7 +2018,7 @@ dissect_artnet_poll_reply(tvbuff_t *tvb, guint offset, proto_tree *tree)
|
|||
|
||||
proto_tree_add_item(tree, hf_artnet_poll_reply_subswitch, tvb,
|
||||
offset, 1, ENC_BIG_ENDIAN);
|
||||
universe |= tvb_get_guint8(tvb, offset) & 0xF0;
|
||||
universe |= (tvb_get_guint8(tvb, offset) & 0x0F) << 4;
|
||||
offset += 1;
|
||||
|
||||
proto_tree_add_item(tree, hf_artnet_poll_reply_oem, tvb,
|
||||
|
|
Loading…
Reference in New Issue