Problem with proxyarpd on Sun-4's running SunOS 4.0 (pa

Mark Prior munnari!sirius.ua.oz.au!mrp at uunet.uu.net
Tue Dec 13 03:19:42 AEST 1988


We had problems with proxyarpd when we tried to run it on our Sun-4, it
dumped core with a bus error then it was queried. Here's a patch that
fixes things (I haven't got around to working out why the original code
doesn't work but it's probably a compiler bug :-))

Mark.

*** proxyarpd.c Fri Nov 18 14:29:10 1988
--- proxyarpd.c.orig    Thu Nov 17 16:26:54 1988
***************
*** 587,595 ****

  #if OS_REV >= 4
!   /*
!    * Original version dumped core
!    * addr = *((u_long*) &arpp->arp_tpa[0]);
!    */
!   bcopy(arpp->arp_tpa,&addr,4);
  #else
    addr = *((u_long*) &arpp->arp_xtpa[0]);
--- 587,591 ----

  #if OS_REV >= 4
!   addr = *((u_long*) &arpp->arp_tpa[0]);
  #else
    addr = *((u_long*) &arpp->arp_xtpa[0]);

--
Mark Prior                              Phone : +61 8 228 5680
University Computing Services           Telex : UNIVAD AA89141
University of Adelaide                  Fax   : +61 8 224 0464
GPO Box 498 Adelaide S.AUSTRALIA 5001   ACSnet: mrp at sirius.ua.oz



More information about the Comp.sys.sun mailing list