ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 5821] Reduce per-packet memory requirements

Date: Sat, 18 Aug 2012 15:43:53 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5821

--- Comment #16 from Guy Harris <guy@xxxxxxxxxxxx> 2012-08-18 15:43:52 PDT ---
(In reply to comment #14)
> Ok, but we don't have API in libwireshark to get frame_data pointer from frame
> number, I assume we don't want to have frame_data_sequence inside libwireshark?
> 
> Other way, is to put prev_dis, prev_cap as arguments of dissection, which
> requires lot more work, and this way text for COL_DELTA_TIME_DIS,
> COL_DELTA_TIME can't be calculated without dissection (or some hack).
> 
> Do you have any other idea?

Supply the time delta values in the packet_info structure, and have
epan_dissect_run() take additional nstime_t  * arguments for the absolute time
stamps of the previous captured and displayed frames (pass in NULL if it's the
first captured or dissected frame, and have the dissection process leave the
delta columns blank and leave out the delta-time values in the protocol tree
for the first frame, or set them to 0 if that looks too weird) and fill in
those fields based on that?

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.