Wireshark-commits: [Wireshark-commits] rev 26060: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Fri, 22 Aug 2008 22:17:40 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=26060

User: guy
Date: 2008/08/22 03:17 PM

Log:
 One set of tests for whether a packet looks like a STUN2 packet
 suffices; have the heuristic dissector call the message dissector and
 return FALSE if the message dissector returns 0 (meaning it's not a
 STUN2 packet) and TRUE otherwise.
 
 New-style dissectors don't return a Boolean, they return 0 if the packet
 isn't a packet for that protocol and the number of bytes dissected
 otherwise.  (Yes, that's a problem if the length of the tvbuff handed to
 the dissector is 0; that's why new-style dissectors aren't yet the
 default.)

Directory: /trunk/epan/dissectors/
  Changes    Path              Action
  +19 -57    packet-stun2.c    Modified