[vpnc-devel] CPU Load under Mac OS X
Mattias.Nissler at gmx.de
Tue Jun 14 15:41:34 CEST 2005
> Hello everybody!
> Frustrated by Ciscos Implementation of VPN I tried to build vpnc
> under Mac OS X 10.4.
> In 2004, somebody posted a patch to the list for vpnc-0.2-rm+zomb
> which built with no errors. Also, I managed to build the latest
> version with minor patches (and without kernel-ipsec), but both gave
> the same error: Even when idling CPU usage is at 99%; data transfers
> work but it is really slow.
Hey, are you getting packets through without kernel-ipsec? I will be quite
surprised if that is possible ;-)
The CPU usage problem is caused by the fact that OS X Tiger breaks poll().
vpnc calls poll() and gets an error. And then there is a loop. However,
using kernel-ipsec, vpnc is actually done at that stage, so the tunnel works
... what a hack.
However replacing the poll() by select() restores normal operation. It is
quite trivial, but if you like I can send you a patch against 0.2-rm+zomb.
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
More information about the vpnc-devel