[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netwatch bus error



> >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;



Reply to: