This is the mail archive of the
mailing list for the eCos project.
Problem witth the PPP stack by Mark Retallack
- From: Deak Ferenc <feco at stp dot hu>
- To: ECOS <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 6 Feb 2004 11:10:18 +0100
- Subject: [ECOS] Problem witth the PPP stack by Mark Retallack
I spent this week with the PPP stack provided by Mark Retallack. Finally I have to ask for a help.
I'm trying to connect to the inernet with a GPRS modem. I can connect to my GSM provider, after connect I see the local IP and the remote IP.
At this point everything seems fine, but I can not ping any host, and can not connect to any host. Something happens with the ping, because I see the protocol 0x21 in the PPP logs but no answer arrives to my ping.
My program is based on the example provided in the package, with minimal changes.
Our system is stable and used for years with ethernet, so I think it is not the problem with the whole system.
One more problem: If I additionally initialize an ethernet interface (which works fine for years) with fix IP and with a gateway (with init_net), then 'dodefaultroute' fails in the PPP login process. If I set the gateway to "0.0.0.0", then 'dodefaultroute' succeeds in PPP, but the system hangs when I'm trying to connect to any host.
Can somebody help me, or show a working example?
Thanks in advance,
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss