forked from osmocom/wireshark
packet-knxnetip.c: Fix bitmask
Bug: 14115 Change-Id: I836ee337f4727b0592cda074975c20a68fe7a27d Reviewed-on: https://code.wireshark.org/review/24124 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
c6c709490c
commit
89e40fad29
|
@ -933,7 +933,7 @@ static void dissect_apci(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree
|
|||
switch (type){
|
||||
case(A_ADC_RED):
|
||||
case(A_ADC_RES):
|
||||
type = (tvb_get_ntohs(tvb, *offset) & 0x2FF);
|
||||
type = (tvb_get_ntohs(tvb, *offset) & 0x1FF);
|
||||
if (type == A_SYS_RED || type == A_SYS_RES || type == A_SYS_WRT || type == A_SYS_BROAD){
|
||||
proto_tree_add_bits_item(insert_tree, hf_knxnetip_cemi_apci, tvb, (*offset*8)+6, 10, ENC_BIG_ENDIAN);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue