[En-Nut-Discussion] Re: En-Nut-Discussion Digest, Vol 13, Issue 21

Nic Cave-Lynch nic at tymar.com
Tue Nov 16 22:22:36 CET 2004


Hi Gregor

Michal's bug fix. In lcpin.c:
 >
 >   Original LINE 246: ----------------------
 >
 >           xcpl -= xcpo->xcpo_len;
 >           xcpo = (XCPOPT *) ((char *) xcpo + xcpo->xcpo_len);
 >
 >   My New code: ----------------------------
 >
 >         if(len) {
 >           xcpl -= len;
 >           xcpo = (XCPOPT *) ((char *) xcpo + len);
 >         }
 >         else {
 >           xcpl -= xcpo->xcpo_len;
 >           xcpo = (XCPOPT *) ((char *) xcpo + xcpo->xcpo_len);
 >         }

Plus in pppc.c, I've made some changes as follows to use devAhdlc, 
instead of devUsart0 (or devUsart0):

//#include <dev/uartavr.h> /* NCL commented this out */
#include <dev/ppp.h>
// PPP device settings.
#define PPPDEV      devAhdlc0   /* NCL: re-included this line, Was
				commented out. Use HDLC driver. */
//#define PPPDEV      devUsartAvr0    /* NCL removed this line.
					Use standard UART driver. */

I'm connecting directly to a Windows 2000 professional server, so I 
needed to make some changes to some of the handshaking options. In a 
command window on the server type:

netsh
ras
del mult mul
del mult bacp
q

The above stops Windows from trying to negotiate multilink and BACP 
protocols, which Ethernut can't deal with.

And in the incoming connections properties under 'network and dial up 
connections', go to the 'users' tab and uncheck the 'always allow 
directly connected devices to  connect without providing a password'. 
This makes Windows try to negotiate PAP for authentication, which the 
Ethernut needs before it will proceed to establishing the PPP phase. It 
means that you must have the appropriate user and password set up on the 
Windows box.

Of course, the above don't make any difference if you're not using 
Windows as the server, and I suspect it's different if you're connecting 
by modem. I've also got a setup for direct connection to a Linux box, if 
you're interested in that.

Good luck, and thanks to the Ethernut people for all their hard work...

Regards

Nic C-L
> 
> Message: 1
> Date: Mon, 15 Nov 2004 20:31:24 +0100
> From: Grzegorz P?o?ski <grzegorz.plonski at numeron.pl>
> Subject: RE: [En-Nut-Discussion] Re: PPP configuration problem (Can
> 	Filibeli)
> To: "'Ethernut User Chat (English)'" <en-nut-discussion at egnite.de>
> Message-ID: <20041115193127.810F7C27A4 at numerek>
> Content-Type: text/plain;	charset="iso-8859-2"
> 
> 
> 
> Hi,
> 
> Where is this bug-fix and tip from Michal Kuna ?
> 
> I use devAhdlc1 device and ppp not work with 3.9.2 OS.
> 
> 
> Greg Plonski
> 
> 




More information about the En-Nut-Discussion mailing list