[En-Nut-Discussion] Re: PPP link :)

Eduardo Serantes eduardo.serantes at gmail.com
Wed Sep 20 12:43:32 CEST 2006


 Hi Andras,

I haven't worked on Nut for a long time, but I remember that if you used
only _close to finish a ppp connection, you couldn't establish a new ppp
link without reseting the board. Try this:


_ioctl(pppcom, HDLC_SETIFNET, 0); // change pppcom for the name you used in
_open

NutSleep(2000); // To ensure the state machine goes to a safe state

_close(pppcom); // change pppcom for the name you used in _open

AvrUsartSetDTR1(1); // put here your routine to change the DTR signal



I hope this helps...

Regards,


Eduardo Serantes


Hi,
>
>
> I read the ppp manual on ethernut's website, tried so many things, but I
> was
> unable to close a PPP link.
>
> In the PPPclose function, there is a ipcp_out  term req, but that's not
> pull
> down the PPP link.
> If I'm sending out a LCP term.req after the ipcp term.req it's going down.
> Is it only a dirty hack, or it's ok to close a PPPlink with _close
> function?
>
>
> (somebody with more knowledge in NUT and PPP can tell me?)
>
>
> Thanks.
>
> Best Regards,
> Andras
>
>
>



More information about the En-Nut-Discussion mailing list