If a UDP packet is submitted to the RTP heuristic dissector with either odd src
or dst ports, the heuristic will correctly return FALSE. However, that
interferes with the next few lines of code that can potentially treat version 0
RTP packets as either STUN or T38 depending on preference settings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25150
f5534014-38df-0310-8fa8-
9805f1628bb7
if (! global_rtp_heur)
return FALSE;
- /* Was it sent between 2 even-numbered ports? */
- if ((pinfo->srcport % 2) || (pinfo->destport % 2)) {
- return FALSE;
- }
-
/* Get the fields in the first octet */
octet1 = tvb_get_guint8( tvb, offset );
version = RTP_VERSION( octet1 );
return FALSE;
}
+ /* Was it sent between 2 even-numbered ports? */
+ if ((pinfo->srcport % 2) || (pinfo->destport % 2)) {
+ return FALSE;
+ }
+
/* Get the fields in the second octet */
octet2 = tvb_get_guint8( tvb, offset + 1 );
payload_type = RTP_PAYLOAD_TYPE( octet2 );