forked from osmocom/wireshark
Removed unnecessary check for transport protocol.
This commit is contained in:
parent
cdbbf5d384
commit
2fe740c00d
|
@ -446,7 +446,6 @@ heur_dissect_npmp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree, v
|
||||||
if (length < 4)
|
if (length < 4)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if((pinfo->ptype == PT_TCP) || (pinfo->ptype == PT_UDP) || (pinfo->ptype == PT_DCCP)) {
|
|
||||||
/* For TCP, UDP or DCCP:
|
/* For TCP, UDP or DCCP:
|
||||||
Type must either be NETPERFMETER_DATA or NETPERFMETER_IDENTIFY_FLOW */
|
Type must either be NETPERFMETER_DATA or NETPERFMETER_IDENTIFY_FLOW */
|
||||||
const guint8 type = tvb_get_guint8(message_tvb, offset_message_type);
|
const guint8 type = tvb_get_guint8(message_tvb, offset_message_type);
|
||||||
|
@ -474,7 +473,6 @@ heur_dissect_npmp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree, v
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return dissect_npmp(message_tvb, pinfo, tree, data);
|
return dissect_npmp(message_tvb, pinfo, tree, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue