diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-02-03 13:15:30 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-02-03 21:16:08 +0000 |
commit | ebb471f2116494f2c56124b03a5f21818e8cc71b (patch) | |
tree | b8d0af86cb9c9122247ee6698ca36e17bc278bdc /wiretap/ipfix.c | |
parent | d5f52cfaf51e81db8b268da0b4c572d19b809432 (diff) |
Clean up addition of FT_IPv{4,6} fields.
The data for an address is *not* guaranteed to be aligned on any
particular boundary, so, for IPv4 addresses, don't assume it's aligned
on a 32-bit boundary - copy it with memcpy() and use the result of the
copy.
For IPv6 addresses, cast the data pointer to a pointer to a *const*
ws_in6_addr, so we don't throw away constness.
Change-Id: I0e00263f594d7778c3bd9b98e4336cb201c1f3d5
Reviewed-on: https://code.wireshark.org/review/25580
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/ipfix.c')
0 files changed, 0 insertions, 0 deletions