[EMAIL PROTECTED] wrote:

Can anyone tell me where I can found source code of lwip_ppp_status and how
to manage it?

In directory eCos_SDK\ecos2\packages\net\lwip_tcpip\current\src\ecos\init.c from Falcom SDK.

static bool ppp_started;
int lwip_ppp_status() {
 if (ppp_started) return 1;
 else return 0;
}
void
pppMyCallback(void *a , int e, void * arg)
{
   struct ppp_addrs *pppaddrs;
   //diag_printf("callback %d \n",e);
   pppaddrs = (struct ppp_addrs *)arg;
   ppp_ip_addr = &pppaddrs->our_ipaddr;
   if(e == 0) ppp_started = true;
     else  ppp_started = false;
}

I'm using this function inside my application but I can't run a ppp connection
cause it always give me back 0 as return value

Please enable debug output for PPP and send me the debug messages logfile.

Best regards,

Anoulak

Thanks, and regards...

Roberto -- ITALY

__________________________________________________________________
TISCALI ADSL 1.25 MEGA a soli 19.95 euro/mese
Solo con Tiscali Adsl navighi senza limiti di tempo
a meno di 20 euro al mese. E in piu' telefoni senza
pagare il canone Telecom! Scopri come, clicca qui http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/





_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users


--

_____ FALCOM GmbH ______________________________________________________

Dipl.-Inf. Anoulak Kictiraz

Software Engineer
R&D Department

Phone:   +49 3677 8042 0
Fax:     +49 3677 8042 215
E-mail:  [EMAIL PROTECTED]

Address: Gewerbering 6, 98704 Langewiesen, Germany

______________________________ www.falcom.de ___________________________

This e-mail and any files transmitted are the property of FALCOM and/or
its affiliates, are confidential, and are intended solely for the use of
the individual or entity to whom this e-mail is addressed. If you are
not one of the named recipients or otherwise have reason to believe that
you have received this e-mail in error, please notify the sender and
delete this message immediately from your computer. Any other use,
retention, dissemination, forwarding, printing or copying of this e-mail
is strictly prohibited.



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to