aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-07-29 23:56:20 -0400
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-07-31 07:37:11 +0000
commit5c15ebb9a23d1c9a7773d2eccf1df634ac5ff168 (patch)
tree86935b04529cd5fe25271d88f2dcfd5aab671d74 /epan/prefs.c
parent39ca9db96a83c6c4fae8c7463d3ba6b66624e349 (diff)
prefs: Convert most RTP dissectors to use "auto" PT preferences
Similar to commit 2eb7b05b8c9c6408268f0d1e81f0a18a02610f1c, replace the RTP payload type preferences with automatic dissectors. This reduces the number of preference module callbacks.
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index bd86f5a82d..3dd0408f1e 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -5200,8 +5200,8 @@ deprecated_port_pref(gchar *pref_name, const gchar *value)
const char* pref_name;
};
- /* For now this is only supporting TCP/UDP port dissector preferences
- which are assumed to be decimal */
+ /* For now this is only supporting TCP/UDP port and RTP payload
+ * types dissector preferences, which are assumed to be decimal */
/* module_name is the filter name of the destination port preference,
* which is usually the same as the original module but not
* necessarily (e.g., if the preference is for what is now a PINO.)
@@ -5293,6 +5293,25 @@ deprecated_port_pref(gchar *pref_name, const gchar *value)
{"sscop.udp.ports", "sscop", "udp.port", 10},
{"tftp.udp_ports", "tftp", "udp.port", 10},
{"tipc.udp.ports", "tipc", "udp.port", 10},
+ /* RTP */
+ {"amr.dynamic.payload.type", "amr", "rtp.pt", 10},
+ {"amr.wb.dynamic.payload.type", "amr_wb", "rtp.pt", 10},
+ {"dvb-s2_modeadapt.dynamic.payload.type", "dvb-s2_modeadapt", "rtp.pt", 10},
+ {"evs.dynamic.payload.type", "evs", "rtp.pt", 10},
+ {"h263p.dynamic.payload.type", "h263p", "rtp.pt", 10},
+ {"h264.dynamic.payload.type", "h264", "rtp.pt", 10},
+ {"h265.dynamic.payload.type", "h265", "rtp.pt", 10},
+ {"ismacryp.dynamic.payload.type", "ismacryp", "rtp.pt", 10},
+ {"iuup.dynamic.payload.type", "iuup", "rtp.pt", 10},
+ {"lapd.rtp_payload_type", "lapd", "rtp.pt", 10},
+ {"mp4ves.dynamic.payload.type", "mp4ves", "rtp.pt", 10},
+ {"mtp2.rtp_payload_type", "mtp2", "rtp.pt", 10},
+ {"opus.dynamic.payload.type", "opus", "rtp.pt", 10},
+ {"rtp.rfc2198_payload_type", "rtp_rfc2198", "rtp.pt", 10},
+ {"rtpevent.event_payload_type_value", "rtpevent", "rtp.pt", 10},
+ {"rtpevent.cisco_nse_payload_type_value", "rtpevent", "rtp.pt", 10},
+ {"rtpmidi.midi_payload_type_value", "rtpmidi", "rtp.pt", 10},
+ {"vp8.dynamic.payload.type", "vp8", "rtp.pt", 10},
};
/* These are subdissectors of TPKT/OSITP that used to have a