From owner-freebsd-net Mon Oct 2 20:53:49 2000 Delivered-To: freebsd-net@freebsd.org Received: from modemcable101.200-201-24.mtl.mc.videotron.ca (modemcable140.61-201-24.mtl.mc.videotron.ca [24.201.61.140]) by hub.freebsd.org (Postfix) with SMTP id 6FF9537B503 for ; Mon, 2 Oct 2000 20:53:46 -0700 (PDT) Received: (qmail 31529 invoked from network); 3 Oct 2000 03:53:45 -0000 Received: from patrak.local.mindstep.com (HELO PATRAK) (192.168.10.4) by jacuzzi.local.mindstep.com with SMTP; 3 Oct 2000 03:53:45 -0000 Message-ID: <038501c02ced$99936960$040aa8c0@local.mindstep.com> From: "Patrick Bihan-Faou" To: References: <200010022329.e92NT9n37409@hak.lan.Awfulhak.org> <001101c02ccd$c1e96470$1200a8c0@gsicomp.on.ca> Subject: Re: natd and userland ppp Date: Mon, 2 Oct 2000 23:54:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > > I think there's probably room for some sort of ascii interface to > > libalias though, including (at least) the natd configuration file > > parser. That way ppp could allow ``nat config /etc/natd.conf'' and > > could have a generally more compatible (with natd) interface. > > And just in case anyone was wondering, I am currently working on a ``nat > config '' feature for ppp. I'm just taking lots of time > determining the best way to do it, since there is a considerable amount of > code from natd that needs to be added to ppp (in other words, the config > file parser is around 25% of natd's total code.) Ouch, that hurts... 25% code porting calls for drastic measures... It would definitely be nice to have the same code for these two tools. Maybe extending the library or creating a new one, I don't know. But if the code is not the same, there will be some divergence at some point and that will be painfull... There must be a better way (although I don't have the answer). Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message