Wireshark-commits: [Wireshark-commits] rev 41216: /trunk/ /trunk/epan/dissectors/: packet-sctp.c /t
Date: Tue, 28 Feb 2012 03:19:50 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=41216

User: morriss
Date: 2012/02/27 07:19 PM

Log:
 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3315 -
 make Save-As/Displayed/All-Packets save not only the displayed packets but
 also any other packets needed (e.g., for reassembly) to fully dissect the
 displayed packets.
 
 This works only for the "All packets" case; choosing only the Selected packet,
 the Marked packets, or a range of packets would require actually storing which
 packets depend on which (too much memory) or going through the packet list many
 times (too slow).  Also, this behavior is always the case: you can't save the
 displayed packets without their dependencies (I don't see why this would be
 desirable).
 
 So far this is done for SCTP and things using the reassembly routines (TCP has
 been tested).
 
 The Win32 dialog was modified but hasn't been tested yet.
 
 One confusing aspect of the UI is that the Displayed count in the Save-As
 dialog does not match the number of displayed packets.  (I tried renaming the
 button "Displayed + Dependencies" but it looked too big.)  The tooltip tries
 to explain this and the fact that this works only in the All-Packets case;
 suggestions for improvement are welcome.
 
 
 Implementation details:
 
 Dissectors (or the reassembly code) can list frames which were needed to
 build the current frame's tree.  If the current frame passes the display
 filter then each listed frame is marked as "depended upon" (this takes up the
 last free frame_data flag).
 
 When performing a Save-As/Displayed/All-Packets then choose packets which
 passed the dfilter _or_ are depended upon.

Directory: /trunk/epan/dissectors/
  Changes    Path             Action
  +6 -0      packet-sctp.c    Modified

Directory: /trunk/epan/
  Changes    Path                Action
  +2 -0      epan.c              Modified
  +1 -0      frame_data.c        Modified
  +1 -0      frame_data.h        Modified
  +1 -0      libwireshark.def    Modified
  +9 -0      packet.c            Modified
  +8 -0      packet.h            Modified
  +2 -3      packet_info.h       Modified
  +5 -3      reassemble.c        Modified

Directory: /trunk/ui/gtk/
  Changes    Path                  Action
  +2 -1      capture_file_dlg.c    Modified
  +1 -1      print_dlg.c           Modified


(6 files not shown)