Wireshark-commits: [Wireshark-commits] rev 48917: /trunk/epan/ /trunk/epan/dissectors/: packet-clnp
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=48917
User: guy
Date: 2013/04/18 12:22 PM
Log:
Add to tvbuffs a "fragment length" field; if the tvbuff represents the
first fragment of a non-reassembled packet, and we know the length the
packet would have if it were reassembled, this field holds the length of
the fragment, and the "reported length" field shows the length the
packet would have if it were reassembled, so going past the end of the
fragment but staying within the length of the reassembled packet can be
reported as "dissection would have worked if the packet had been
reassembled" rather than "the packet is too short, so it was probably
malformed".
Add a FragmentBoundsError exception, thrown in the "dissection would
have worked if the packet had been reassembled" case.
Add a new tvb_new_subset_length_fragment() routine to create a new
subset tvb with specified fragment and reported lengths. Use it in the
CLNP dissector.
Add some more sanity checks in the CLNP dissector.
Directory: /trunk/epan/dissectors/
Changes Path Action
+133 -48 packet-clnp.c Modified
Directory: /trunk/epan/
Changes Path Action
+61 -16 exceptions.h Modified
+8 -0 exntest.c Modified
+2 -2 packet.c Modified
+11 -0 show_exception.c Modified
+30 -0 tvbtest.c Modified
+6 -0 tvbuff-int.h Modified
+99 -16 tvbuff.c Modified
+12 -1 tvbuff.h Modified