diff options
author | John Birrell <jb@FreeBSD.org> | 1998-06-06 23:33:28 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1998-06-06 23:33:28 +0000 |
commit | fa05a94c427e2a35433ecbdb9a1035bef04bfeb7 (patch) | |
tree | 16e76842b9a591e84363c5cb2c31a46564217d33 /contrib/traceroute/traceroute.c | |
parent | 1c16aba2c73aef170f64710db67e7f0e20d813d3 (diff) | |
download | src-fa05a94c427e2a35433ecbdb9a1035bef04bfeb7.tar.gz src-fa05a94c427e2a35433ecbdb9a1035bef04bfeb7.zip |
Fix an alignment problem on alpha by doing a bytewise copy.
Notes
Notes:
svn path=/head/; revision=36713
Diffstat (limited to 'contrib/traceroute/traceroute.c')
-rw-r--r-- | contrib/traceroute/traceroute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/traceroute/traceroute.c b/contrib/traceroute/traceroute.c index ba870539a73c..cca0cddd59c9 100644 --- a/contrib/traceroute/traceroute.c +++ b/contrib/traceroute/traceroute.c @@ -24,7 +24,7 @@ static const char copyright[] = "@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996\n\ The Regents of the University of California. All rights reserved.\n"; static const char rcsid[] = - "@(#)$Header: /home/ncvs/src/contrib/traceroute/traceroute.c,v 1.4 1996/10/08 02:44:26 sef Exp $ (LBL)"; + "@(#)$Header: /home/ncvs/src/contrib/traceroute/traceroute.c,v 1.5 1996/10/08 19:16:24 sef Exp $ (LBL)"; #endif /* @@ -753,7 +753,9 @@ send_probe(register int seq, register int ttl, register struct timeval *tp) outdata->seq = seq; outdata->ttl = ttl; - outdata->tv = *tp; + + /* Avoid alignment problems by copying bytewise: */ + memcpy(&outdata->tv, tp, sizeof(outdata->tv)); i = sendto(sndsock, (char *)outip, packlen, 0, &whereto, sizeof(whereto)); |