Re: netwatch bus error
I've forwarded this as a bug against netdiag.
On Sat, Oct 07, 2000 at 03:44:51PM +1100, Anton Blanchard wrote:
>
> > >It is probably doing an unaligned load or store.
> > How would I fix that?
>
> Try this patch. Ben can this be added to the deb?
>
> Anton
>
>
> --- netdiag-0.7.orig/netwatch/netwatch.c Wed Jul 7 23:31:26 1999
> +++ netdiag-0.7/netwatch/netwatch.c Sat Oct 7 15:41:10 2000
> @@ -2366,13 +2366,12 @@
> }
>
> void
> -/* handle_ip (struct ip *argbuf, int length) */
> - handle_ip (struct ip *buf, int length)
> + handle_ip (struct ip *argbuf, int length)
> {
> int wlen;
> -/* struct ip bufstruct, *buf = &bufstruct;
> + struct ip bufstruct, *buf = &bufstruct;
>
> - memcpy(buf, argbuf, sizeof(struct ip));*/ /* to fix unaligned accesses */
> + memcpy(buf, argbuf, sizeof(struct ip)); /* to fix unaligned accesses */
> new = time (0);
> wlen = ntohs (buf->tot_len);
> selprob = 40;
>
>
> --
> To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: