summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2017-03-22 20:05:51 +0100
committerMichael Mann <mmann78@netscape.net>2017-03-22 21:45:43 +0000
commitfa25f19ae433d6ee34e15c123ffffbc908d3bbe2 (patch)
tree7c21b165ee3895987c649921524a64f649b9ca26
parenta83496452a8511c2a6c93328fa12cbaabf6bddf9 (diff)
downloadwireshark-fa25f19ae433d6ee34e15c123ffffbc908d3bbe2.tar.gz
Thrift: Register for media-type application/x-thrift
Thrift streams can be transported over http (or https). application/x-thrift is not official assigned but still in use (s. https://issues.apache.org/jira/browse/THRIFT-3250). Change-Id: I42e34b55da023b09bfef4658c89b1941ef4e574b Reviewed-on: https://code.wireshark.org/review/20674 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-thrift.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-thrift.c b/epan/dissectors/packet-thrift.c
index 14c4b14b0b..baba116661 100644
--- a/epan/dissectors/packet-thrift.c
+++ b/epan/dissectors/packet-thrift.c
@@ -505,8 +505,11 @@ void proto_register_thrift(void) {
}
void proto_reg_handoff_thrift(void) {
+ static dissector_handle_t thrift_http_handle;
heur_dissector_add("tcp", dissect_thrift_heur, "Thrift over TCP", "thrift_tcp", proto_thrift, HEURISTIC_ENABLE);
+ thrift_http_handle = create_dissector_handle(dissect_thrift_heur, proto_thrift);
+ dissector_add_string("media_type", "application/x-thrift", thrift_http_handle);
}
/*