Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 1995 15:59:37 +0000
From:      marques@vax.ox.ac.uk (Jose Marques)
To:        FreeBSD-questions@freefall.cdrom.com, "starner.mark" <starner.mark@HAN.UnisysGSG.COM>
Subject:   Re: [FreeBSD-2.0-RELEASE] general kernel config file questions
Message-ID:  <v01510100ab84d5008083@[163.1.67.21]>

next in thread | raw e-mail | index | archive | help
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 <jose.marques@las.ox.ac.uk>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01510100ab84d5008083>