Wireshark-commits: [Wireshark-commits] rev 47768: /trunk/epan/ /trunk/epan/: libwireshark.def tvbuf
Date: Wed, 20 Feb 2013 08:10:15 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=47768

User: guy
Date: 2013/02/20 12:10 AM

Log:
 Add a tvb_new_subset_length() that takes a tvbuff, an offset in a
 tvbuff, and a length from that offset, and returns a subset tvbuff
 referring to that data (or throws an exception).  This does what most if
 not all calls to tvb_new_subset() (other than the ones that really
 should be calls to tvb_new_subset_remaining()) should be doing, i.e.
 setting the reported length of the tvbuff to the specified length and
 calculating the appropriate value of the captured length based on that.
 
 We aren't using it yet, but we will....

Directory: /trunk/epan/
  Changes    Path                Action
  +1 -0      libwireshark.def    Modified
  +37 -0     tvbuff.c            Modified
  +6 -0      tvbuff.h            Modified