diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-01-24 00:26:57 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-01-24 00:26:57 +0000 |
commit | 1ff8c4272fb224666efd7427a9876a01311019c9 (patch) | |
tree | 7bd0e6363b39ccedfb52e81c484c482978ba4881 /epan/dissectors/packet-frame.c | |
parent | da9e0c68313aff629b50f89d2b87276e8fa088ef (diff) |
Add register_postdissector() to the API.
Dissectors registered with register_postdissector() will be called after all other dissectors have been called.
Use it to register mate.
svn path=/trunk/; revision=17089
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r-- | epan/dissectors/packet-frame.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index 03dabf2d17..e67f77fb4a 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -65,7 +65,6 @@ static int frame_tap = -1; static dissector_handle_t data_handle; static dissector_handle_t docsis_handle; -static dissector_handle_t mate_handle = NULL; /* Preferences */ static gboolean show_file_off = FALSE; @@ -314,9 +313,10 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) pinfo->layer_names = NULL; } - tap_queue_packet(frame_tap, pinfo, NULL); + call_all_postdissectors(tvb,pinfo,tree); - if (mate_handle) call_dissector(mate_handle,tvb, pinfo, parent_tree); + tap_queue_packet(frame_tap, pinfo, NULL); + if (frame_end_routines) { g_slist_foreach(frame_end_routines, &call_frame_end_routine, NULL); @@ -519,5 +519,4 @@ proto_reg_handoff_frame(void) { data_handle = find_dissector("data"); docsis_handle = find_dissector("docsis"); - mate_handle = find_dissector("mate"); } |