Wireshark-commits: [Wireshark-commits] rev 36787: /trunk/wiretap/ /trunk/wiretap/: netscaler.c
Date: Fri, 22 Apr 2011 03:10:28 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=36787

User: guy
Date: 2011/04/21 08:10 PM

Log:
 Make all the fields in the various structures just arrays of bytes, so
 we can cast not-necessarily-aligned pointers to pointers to those
 structures without risk of compiler warnings *or* the underlying problem
 the compiler's trying to warn us about (no, you can't always dereference
 an unaligned pointer - SPARC traps, and at least some ARM processors may
 do something other than what you want, for example).
 
 This also caught some cases where we were not even properly
 byte-swapping on big-endian platforms.
 
 This also lets us not muck around with splitting 64-bit times into two
 32-bit fields - we have pletohll(), after all.

Directory: /trunk/wiretap/
  Changes    Path           Action
  +108 -100  netscaler.c    Modified