[En-Nut-Discussion] CHAP support
Michel
unreal at home.nl
Fri Dec 16 13:20:52 CET 2005
Hi all,
I did some tests and I have been able to dial into one ISP, but not another.
As soon as I can get that fixed I will post the resulting source files.
I did find one bug in chapin.c (sorry Eduardo ;-) ): It writes to the
'Response' pointer, but there is no memory allocated to that pointer. I
could fix it with a simple NutHeapAlloc() call.
Thanks everyone for their effort,
Michel
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Eduardo Serantes
Sent: woensdag 14 december 2005 14:57
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] CHAP support
Hi all,
I'm sorry for disappearing from the world for the last months, but I have
had some health problems and it seems I'll be "ko" for a long time. I sent
yesterday the CHAP code to Michel with the promise he'll review the code to
fit it to the new ethernut release and later on he'll distribute it to the
ethernut community. Ernst and me tested it in the past and I included the
code in a commercial design that is working up today, so it seems there are
no many bugs in the code. Anyway, there is something that should be
implemented: the code assumes CHAP as protocol and there is no attempts to
connect via PAP. The code should try first with PAP and them switch to CHAP
if the protocol is refused from the ISP. There is another "trick" to
reconnect without the need of rebooting: to close the connection, you should
use:
_ioctl(pppcom, HDLC_SETIFNET, 0);
NutSleep(2000);
_close(pppcom);
AvrUsartSetDTR1(1); //Close you DTR signal here
Ernst, regarding the question of using the code, I think that all the code
developed under a GNU license, where a lot of people have been working on it
with a great effort, MUST be freeware and distributed with no restrictions.
So please, feel free to send the sources (I had to time to format the code
and to sent it, sorry for that). And please, if you put a header in the
sources, add your name because you were also involved in the development and
test.
Good luck,
Eduardo
Date: Tue, 13 Dec 2005 22:15:20 +0100
> From: "Ernst Stippl" <ernst at stippl.org>
> Subject: AW: [En-Nut-Discussion] CHAP support
> To: "'Ethernut User Chat (English)'" <en-nut-discussion at egnite.de>
> Message-ID: <20051213211520.AA20B2F4050 at p15095813.pureserver.info>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Michel!
>
> I did some tests based on Eduardo's software and CHAP did work for
> me,; I tested it with 3 Austrian ISPs. However,I did no functional
> "stress" tests (recovery from any kind of transission errors,
> repetitive wrong userids or passwords supplied, etc). This was Nut/OS
> 3.9.1. The last mail on the subject from Eduardo was sent on Jan 14th
> 2005. Since then, I have not heard anything about it.
>
> I still have Eduadro's sources I tested on 3.9.9 but I guess it would
> need his OK to distribute them. (He mentioned in one of his mails he
> wants to send the sources to Harald to get them included in the
> distribution, but that did not happen). How to proceed?? I dont want
> to "sit" on something which may be of use to somebody else and o n the
> other way I feel a bit like giving away something
> which does not belong to me if I just send the sources.
>
> Harald, you being the "keeper at the gates", what's your opinion?
>
> regards
>
> ernst
>
> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Michel
> Hendriks
> Gesendet: Montag, 12. Dezember 2005 11:58
> An: en-nut-discussion at egnite.de
> Betreff: [En-Nut-Discussion] CHAP support
>
> Hi,
>
> Does anyone have a CHAP implementation for NutOS?
> I know Eduardo Serantes created a working version December 2004, but I
> cannot seem to find it.
>
> Could anyone send me an (example) implementation?
>
> Thanks in advance
> Michel
>
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list