[ECOS] LwIP PPP interface not coming up
Frank Pagliughi
fpagliughi@mindspring.com
Thu Jun 26 07:26:00 GMT 2008
Hey All,
I'm trying to test out PPP with lwip. Currently I'm just trying to get
one of the lwip test applications, like 'tcpecho', to negotiate with a
host (a Linux machine over a direct serial connection). It performs the
negotiation, exchanges IP addresses, but it appears that maybe the ppp
interface never comes up on the target. I'm getting the same behavior
with an ARM EB55 target and an i386 PC target. I see similar questions
posted from a few years back, but no solution.
Thanks,
Frank
Here's part of the debug output:
...
IPCP: sending Configure-Request, id 3
pbuf_free(0x002351a0)
pbuf_free: deallocating 0x002351a0
pppInProc[0]: got 15 bytes
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 0x002351a0
pbuf_alloc(length=0) == 0x002351a0
tcpip_thread: CALLBACK 0x002350b0
pbuf_header: old 0x002351b0 new 0x002351b8 (-8)
pppInput[0]: IPCP len=10
fsm_input(IPCP):2,3,10
fsm_rconfack(IPCP): Rcvd id 3 state=8
np_up: 0 proto=21
np_up: maxconnect=0 idle_time_limit=0
ipcp: up
netif_set_ipaddr: netif address being changed
netif: IP address of interface set to 192.168.0.233
netif: netmask of interface set to 255.255.255.0
netif: GW address of interface set to 192.168.0.5
netif: added interface pp IP addr 192.168.0.233 netmask
255.255.255.0 gw 192.168.0.5
sifup: unit 0: linkStatusCB=20e81c errCode=0
callback 0
netif: setting default interface pp
local IP address 192.168.0.233
remote IP address 192.168.0.5
pbuf_free(0x002351a0)
pbuf_free: deallocating 0x002351a0
pppInProc[0]: got 88 bytes
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 0x002351a0
pbuf_alloc(length=0) == 0x002351a0
tcpip_thread: CALLBACK 0x002350b0
pbuf_header: old 0x002351b0 new 0x002351b8 (-8)
pppInput[0]: ip in pbuf len=84
ip_input: iphdr->dest 0xe900a8c0 netif->ip_addr 0xe900a8c0 (0xa8c0,
0xa8c0, 0xe9000000) <--- The correct interface?
ip_input: iphdr->dest 0xe900a8c0 netif->ip_addr 0x100007f (0xc0,
0x7f, 0xe900a800)
ip_input: packet not for us.
ip_forward: not bouncing packets back on incoming interface.
pbuf_free(0x002351a0)
pbuf_free: deallocating 0x002351a0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
...
--
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