From owner-freebsd-questions Thu Mar 9 08:00:54 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA11754 for questions-outgoing; Thu, 9 Mar 1995 08:00:54 -0800 Received: from oxmail2.ox.ac.uk (oxmail2.ox.ac.uk [163.1.2.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id IAA11743 for ; Thu, 9 Mar 1995 08:00:49 -0800 Received: from vax.ox.ac.uk by oxmail2.ox.ac.uk. with SMTP (PP) id <23994-0@oxmail2.ox.ac.uk.>; Thu, 9 Mar 1995 15:59:55 +0000 Received: from 163.1.67.99 by vax.ox.ac.uk (MX V4.1 VAX) with SMTP; Thu, 09 Mar 1995 15:59:36 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 9 Mar 1995 15:59:37 +0000 To: FreeBSD-questions@freefall.cdrom.com, "starner.mark" From: marques@vax.ox.ac.uk (Jose Marques) Subject: Re: [FreeBSD-2.0-RELEASE] general kernel config file questions Sender: questions-owner@FreeBSD.org Precedence: bulk The messsage to which I am replying originally appeared on December 4th of last year on the FreeBSD-questions mailing list. >>FYI: I had, at one point, tried to include the 'proxyarp' option on the >>command line of 'pppd'. This seemed to cause pppd to consume 98-95% >>of CPU!! I don't use that option anymore -- if you need it, good luck ;) >> >The fix for this is: > >in sys-bsd.c > >line 690 said: >mask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr; > >it should say: >mask = ((struct sockaddr_in *) &ifreq->ifr_addr)->sin_addr.s_addr; > ^^ I am using FreeBSD 1.1.5.1R and found the same problem with the proxyarp option. However I found that the above fix did not work for me. After a little experimentation I found that by changing line 480 from: mask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr; to: mask = ((struct sockaddr_in *) &(ifreq.ifr_addr))->sin_addr.s_addr; did the trick. I suspect this is of academic interest only. > >Mark -- Jose Marques