Wireshark-commits: [Wireshark-commits] rev 46324: /trunk/epan/ /trunk/epan/dissectors/: packet-arcn
Date: Sun, 02 Dec 2012 04:49:14 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=46324

User: morriss
Date: 2012/12/01 08:49 PM

Log:
 Introduce, and start using, TVB_SET_ADDRESS() and TVB_SET_ADDRESS_HF().  They
 are like the non-TVB versions except that they take a TVB and an offset
 instead of (frequently) a pointer into the TVB.
 
 Calling tvb_get_ptr() before modifying the rest of the fields should help fix
 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7960 (though I can't
 reproduce that problem).
 
 
 Replace a bunch of calls like:
 
 SET_ADDRESS(..., AT_XXX, length, tvb_get_ptr(tvb, offset, length));
 
 with:
 
 TVB_SET_ADDRESS(..., AT_XXX, tvb, offset, length);

Directory: /trunk/epan/dissectors/
  Changes    Path                         Action
  +4 -4      packet-arcnet.c              Modified
  +2 -2      packet-bt-dht.c              Modified
  +12 -18    packet-catapult-dct2000.c    Modified
  +2 -2      packet-fc.c                  Modified
  +1 -1      packet-iax2.c                Modified
  +1 -1      packet-ieee80211.c           Modified
  +4 -4      packet-ieee802154.c          Modified
  +8 -9      packet-ipv6.c                Modified
  +4 -4      packet-mstp.c                Modified
  +4 -4      packet-netflow.c             Modified
  +8 -13     packet-rsvp.c                Modified


(4 files not shown)