aboutsummaryrefslogtreecommitdiffstats
path: root/epan/exceptions.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-08 10:57:59 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-08 17:58:30 +0000
commitbeb4876cb4dda2b9964c223041386e5e6e33a31e (patch)
treefd4aa580d29359837132b0e2b270d0f2b0c1a6b2 /epan/exceptions.h
parent0f0c079226d588e6dc181160199f9a08e55e4a9e (diff)
Don't assume the data pointed to by an address structure is aligned.
And don't assume you can dereference the pointer nonetheless; that doesn't work on SPARC, for example - you get an unaligned-access trap. Instead, use pntoh32() to fetch IPv4 address values from the address structures. While we're at it, just use guint32 for those addresses; we don't need in_addr_t. Change-Id: I84e6c653fe33b1bc6e67d9097ce423b82f1eb0c8 Reviewed-on: https://code.wireshark.org/review/1024 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/exceptions.h')
0 files changed, 0 insertions, 0 deletions