diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-03-11 15:42:26 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2017-09-13 12:25:44 +0100 |
commit | 1ead603da65982e4bbaeeed73c083cd4cb9cf38d (patch) | |
tree | 68d1586e98edbe79f6656bf5a7acc56affd2d20c /ip6.h | |
parent | 78ba87d130caba9105e6a259bdae2891eb8b4d6f (diff) | |
download | tcpdump-1ead603da65982e4bbaeeed73c083cd4cb9cf38d.tar.gz |
RT6: Fix alignment issue with Solaris Studio 12.3 on Solaris 10 SPARC
Fix the 'Bus Error - core dumped' issue with the 'ipv6-routing-header' test
when '-m64' compiling option is used.
Fix with the method described in commit 1376682.
/opt/solarisstudio12.3/bin/cc -V
gives:
cc: Sun C 5.12 SunOS_sparc Patch 148917-09 2016/08/02
Diffstat (limited to 'ip6.h')
-rw-r--r-- | ip6.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -178,13 +178,13 @@ struct ip6_rthdr { /* Type 0 Routing header */ /* Also used for Type 2 */ struct ip6_rthdr0 { - uint8_t ip6r0_nxt; /* next header */ - uint8_t ip6r0_len; /* length in units of 8 octets */ - uint8_t ip6r0_type; /* always zero */ - uint8_t ip6r0_segleft; /* segments left */ - uint32_t ip6r0_reserved; /* reserved field */ + nd_uint8_t ip6r0_nxt; /* next header */ + nd_uint8_t ip6r0_len; /* length in units of 8 octets */ + nd_uint8_t ip6r0_type; /* always zero */ + nd_uint8_t ip6r0_segleft; /* segments left */ + nd_uint32_t ip6r0_reserved; /* reserved field */ struct in6_addr ip6r0_addr[1]; /* up to 23 addresses */ -} UNALIGNED; +}; /* Fragment header */ struct ip6_frag { |