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
/* Type 0 Routing header */
/* Also used for Type 2 */
struct ip6_rthdr0 {
/* 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 */
struct in6_addr ip6r0_addr[1]; /* up to 23 addresses */
/* Fragment header */
struct ip6_frag {
/* Fragment header */
struct ip6_frag {
#include "netdissect.h"
#include "addrtoname.h"
#include "extract.h"
#include "netdissect.h"
#include "addrtoname.h"
#include "extract.h"
int
rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 _U_)
{
int
rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2 _U_)
{