GOOSE: add back goose.floating_point filter
Let's add it as a hidden filter for IEEE 754 single precision floating point Closes #18491
This commit is contained in:
parent
fd7716542c
commit
a1c55f2356
|
@ -68,12 +68,11 @@ GOOSEpdu
|
|||
|
||||
int len = tvb_reported_length_remaining(tvb, offset);
|
||||
|
||||
%(DEFAULT_BODY)s
|
||||
if ((len == FLOAT_ENC_LENGTH) && (tvb_get_guint8(tvb,0) == SINGLE_FLOAT_EXP_BITS) ){
|
||||
/* IEEE 754 single precision floating point */
|
||||
proto_item_set_hidden(actx->created_item);
|
||||
proto_tree_add_item(tree, hf_goose_float_value, tvb, 1, (FLOAT_ENC_LENGTH-1), ENC_BIG_ENDIAN);
|
||||
offset = len;
|
||||
}else{
|
||||
%(DEFAULT_BODY)s
|
||||
}
|
||||
|
||||
#.END
|
||||
|
|
|
@ -626,14 +626,13 @@ dissect_goose_FloatingPoint(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
|
|||
|
||||
int len = tvb_reported_length_remaining(tvb, offset);
|
||||
|
||||
if ((len == FLOAT_ENC_LENGTH) && (tvb_get_guint8(tvb,0) == SINGLE_FLOAT_EXP_BITS) ){
|
||||
/* IEEE 754 single precision floating point */
|
||||
proto_tree_add_item(tree, hf_goose_float_value, tvb, 1, (FLOAT_ENC_LENGTH-1), ENC_BIG_ENDIAN);
|
||||
offset = len;
|
||||
}else{
|
||||
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
||||
NULL);
|
||||
|
||||
if ((len == FLOAT_ENC_LENGTH) && (tvb_get_guint8(tvb,0) == SINGLE_FLOAT_EXP_BITS) ){
|
||||
/* IEEE 754 single precision floating point */
|
||||
proto_item_set_hidden(actx->created_item);
|
||||
proto_tree_add_item(tree, hf_goose_float_value, tvb, 1, (FLOAT_ENC_LENGTH-1), ENC_BIG_ENDIAN);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue