diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-11 05:47:02 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-11 05:47:02 +0000 |
commit | ce81449ed9294f0104598762ce293c3521820987 (patch) | |
tree | 26efdeea2934c6e99869fc3e5761451043dc3e05 /proto_hier_stats.c | |
parent | 19d2d0dc765cd2417d693746226472207190434a (diff) | |
download | wireshark-ce81449ed9294f0104598762ce293c3521820987.tar.gz wireshark-ce81449ed9294f0104598762ce293c3521820987.tar.bz2 wireshark-ce81449ed9294f0104598762ce293c3521820987.zip |
packet dissection now takes pointer to tvb instead of guint8 data
implement frame_tvbuff, right now almost a copy of 'real' tvb.
svn path=/trunk/; revision=50497
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r-- | proto_hier_stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c index 95b99aeac4..4ff34ba10b 100644 --- a/proto_hier_stats.c +++ b/proto_hier_stats.c @@ -28,6 +28,7 @@ #include "globals.h" #include "proto_hier_stats.h" +#include "frame_tvbuff.h" #include "ui/progress_dlg.h" #include <epan/epan_dissect.h> #include <wtap.h> @@ -153,7 +154,7 @@ process_frame(frame_data *frame, column_info *cinfo, ph_stats_t* ps) epan_dissect_init(&edt, TRUE, FALSE); /* Don't fake protocols. We need them for the protocol hierarchy */ epan_dissect_fake_protocols(&edt, FALSE); - epan_dissect_run(&edt, &phdr, buffer_start_ptr(&buf), frame, cinfo); + epan_dissect_run(&edt, &phdr, frame_tvbuff_new_buffer(frame, &buf), frame, cinfo); /* Get stats from this protocol tree */ process_tree(edt.tree, ps, frame->pkt_len); |