aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hpext.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-13 20:18:34 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-14 18:00:00 +0000
commit8faf5c80b3302247c32e1f5c492cb31a082ee0ad (patch)
treee9bac5673fc9a480fe1fa06fcc6d5d7d45b37389 /epan/dissectors/packet-hpext.c
parent76dec3ba681da2c315efba4433d3b1f995defd91 (diff)
register_dissector -> new_register_dissector
Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: I25fe6a0aac93980333217d007702799d16946563 Reviewed-on: https://code.wireshark.org/review/11816 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-hpext.c')
-rw-r--r--epan/dissectors/packet-hpext.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-hpext.c b/epan/dissectors/packet-hpext.c
index f2ae620531..e6c917158f 100644
--- a/epan/dissectors/packet-hpext.c
+++ b/epan/dissectors/packet-hpext.c
@@ -66,8 +66,8 @@ static gint ett_hpext = -1;
static dissector_handle_t data_handle;
-static void
-dissect_hpext(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_hpext(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_tree *hpext_tree = NULL;
proto_item *ti = NULL;
@@ -101,6 +101,7 @@ dissect_hpext(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
call_dissector(data_handle, next_tvb, pinfo, tree);
}
}
+ return tvb_captured_length(tvb);
}
void
@@ -131,7 +132,7 @@ proto_register_hpext(void)
subdissector_table = register_dissector_table("hpext.dxsap",
"HPEXT XSAP", FT_UINT16, BASE_HEX, DISSECTOR_TABLE_NOT_ALLOW_DUPLICATE);
- hpext_handle = register_dissector("hpext", dissect_hpext, proto_hpext);
+ hpext_handle = new_register_dissector("hpext", dissect_hpext, proto_hpext);
}
void