aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-09-12 13:58:26 -0700
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-09-12 21:05:14 +0000
commitd4394de669e727a246108628975eaa5c13867ed1 (patch)
treef670d389ae5f89261029e27b16a579f59f39e3ee /epan/wslua
parent5ee9cbe0b6b28ec72694b5a04976e80b45e483c2 (diff)
Give dissectors a descriptive string.
It defaults to the short name of the protocol dissected by the descriptor, but it's now possible to register a dissector with an explicit description. This is mainly for use in the Decode As UI. It handles the case where the same protocol might have different "Decode As..."-specifiable dissectors for different situations.
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_dissector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_dissector.c b/epan/wslua/wslua_dissector.c
index 759c130b66..51ad2b6318 100644
--- a/epan/wslua/wslua_dissector.c
+++ b/epan/wslua/wslua_dissector.c
@@ -121,7 +121,7 @@ WSLUA_METAMETHOD Dissector__tostring(lua_State* L) {
/* Gets the Dissector's protocol short name. */
Dissector d = checkDissector(L,1);
if (!d) return 0;
- lua_pushstring(L,dissector_handle_get_short_name(d));
+ lua_pushstring(L,dissector_handle_get_description(d));
WSLUA_RETURN(1); /* A string of the protocol's short name. */
}