[ECOS] PPP fails when peer won't pass IP address
Matt Jerdonek
maj1224@yahoo.com
Wed Feb 9 19:58:00 GMT 2005
I ran into another issue with the PPP stack recently,
and I'd like to get some input on how to address this
problem.
For this particular PPP network, the peer will not
pass its IP address to us during IPCP negotiation.
The eCos PPP stack requests that the peer send the IP
address, but the peer refuses. This causes the eCos
PPP stack to terminate the connection. The peer is
not acting "friendly", but I don't think it is doing
anything wrong. And, of course, both Windows and
Cisco work fine ...
So, here's a simple patch I came up with. I just set
the address of the peer to our local IP address. I
don't see any problem with that since the peer is not
addressable in the first place. The patch appears to
work, but I'm not convinced it's the best approach.
I'd appreciate any comments ... the change is to
src/ipcp.c and the affected function is ipcp_up.
Thanks,
-- Matt
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipcp.diff
Type: application/octet-stream
Size: 1234 bytes
Desc: ipcp.diff
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050209/8819ca7f/attachment.obj>
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list