diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-18 08:38:23 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-18 17:44:49 +0000 |
commit | 3ca5e3ec7d9ad8c2b1ccb0cf9a5d56a1949766fa (patch) | |
tree | f2289c6eb8694894a6a89c21fe5ce5e91b1b2178 /plugins/tpg | |
parent | 8826db5823480697b73103de3434f5c662517e9a (diff) |
create_dissector_handle -> new_create_dissector_handle for plugins
Was able to actually convert all calls to "new style"
Change-Id: If9916a4762d410f2ad12aa5431174d7462dc7ac4
Reviewed-on: https://code.wireshark.org/review/11941
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/tpg')
-rw-r--r-- | plugins/tpg/packet-http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/tpg/packet-http.c b/plugins/tpg/packet-http.c index 4f688c6c58..24b0df9f0d 100644 --- a/plugins/tpg/packet-http.c +++ b/plugins/tpg/packet-http.c @@ -46,7 +46,7 @@ static int hf_http_request_uri = -1; static dissector_handle_t http_handle; -static void dissect_http(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree) { +static int dissect_http(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree, void* data _U_) { http_info_value_t* msgdata = wmem_alloc0(wmem_packet_scope(), sizeof(http_info_value_t)); tvbparse_elem_t* reqresp; tpg_parser_data_t* tpg; @@ -82,8 +82,8 @@ static void dissect_http(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* tree } } else { /* no header */ - return; } + return tvb_captured_length(tvb); } static void proto_register_http(void) { @@ -113,7 +113,7 @@ static void proto_register_http(void) { static void proto_reg_handoff_http(void) { - http_handle = create_dissector_handle(dissect_http, proto_http); + http_handle = new_create_dissector_handle(dissect_http, proto_http); dissector_delete_uint("tcp.port", 80, NULL); dissector_add_uint("tcp.port", 80, http_handle); |