lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] sys_timeouts logs while waiting for msgs. what is simho


From: Sraddha
Subject: Re: [lwip-users] sys_timeouts logs while waiting for msgs. what is simhost expected to do ?
Date: Tue, 10 Jan 2012 16:48:32 +0530


Yes I feel convinced , Thanks

On Tue, Jan 10, 2012 at 3:40 PM, Naveen reddy <address@hidden> wrote:

Hi sraddha,
Simhost will initialize the tcpip and timers. So timers are required to be run. The log u are getting seems to be correct.

On 10 Jan 2012 15:03, "Sraddha" <address@hidden> wrote:
Any opinions about what this log is , I am executing the simhost on the ARM device .

stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0


I was looking in to the code to find out what is exactly happening here , These logs come from the  sys_timeouts_init(); which is called from  lwip_init(); which is called from the tcpip_init(tcpip_init_done, &sem); in the simhost.c

Now according to my understanding some timers are being intialised . Like the for IP , DHCP ,ARP etc. And when the I see the sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg) which is called by sys_timeouts_init(); I understand that  Timeouts are processed in the following cases:
 * - while waiting for a message using sys_timeouts_mbox_fetch()
 * - by calling sys_check_timeouts() (NO_SYS==1 only)

Alrite ! Nice ! My problem is when I run the simhost code on my ARM Device . The logs keep going on


Host at 192.168.0.2 mask 255.255.255.0 gateway 192.168.0.1
System initialized.
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
sys_timeout: 0x44810 msecs=5000 handler=arp_timer arg=0x0
netif_set_ipaddr: netif address being changed
netif: IP address of interface  set to 192.168.0.2
netif: netmask of interface  set to 255.255.255.0
netif: GW address of interface  set to 192.168.0.1
tapif_init: fd 3
tapif_init: system("/system/bin/ifconfig tap0 inet 192.168.0.1");
netif: added interface tp IP addr 192.168.0.2 netmask 255.255.255.0 gw 192.168.0.1
netif: setting default interface tp
httpd_init
tcp_bind: bind to port 80
TCP/IP initialized.
Applications started.
sys_mbox_post: mbox 0x49480 msg 0x407c3e7c
sys_mbox_fetch: mbox 0x49480 msg 0x0
sys_mbox_post: mbox 0x49480 msg 0x40607e74
sys_mbox_post: mbox 0x49480 msg 0x40988e7c
tcpip_thread: API message 0x407c3e7c
sys_mbox_fetch: mbox 0x49480 msg 0x407c3e7c
tcpip_thread: API message 0x40607e74
sys_mbox_fetch: mbox 0x49480 msg 0x40607e74
tcpip_thread: API message 0x40988e7c
sys_mbox_post: mbox 0x49480 msg 0x407c3e7c
sys_mbox_fetch: mbox 0x49480 msg 0x40988e7c
tcpip_thread: API message 0x407c3e7c
sys_mbox_post: mbox 0x49480 msg 0x40607e74
sys_mbox_post: mbox 0x49480 msg 0x40988e7c
pbuf_alloc(length=90)
pbuf_alloc: allocated pbuf 0x480e8
tcp_bind: bind to port 23
sys_mbox_fetch: mbox 0x49480 msg 0x407c3e7c
tcpip_thread: API message 0x40607e74
tcp_bind: bind to port 7
sys_mbox_fetch: mbox 0x49480 msg 0x40607e74
tcpip_thread: API message 0x40988e7c
sys_mbox_post: mbox 0x49480 msg 0x407c3e84
sys_mbox_post: mbox 0x49480 msg 0x40607e7c
udp_bind(ipaddr = 0.0.0.0, port = 7)
udp_bind: bound to 0.0.0.0, port 7
sys_mbox_fetch: mbox 0x49480 msg 0x40988e7c
tcpip_thread: API message 0x407c3e84
sys_mbox_fetch: mbox 0x49480 msg 0x407c3e84
tcpip_thread: API message 0x40607e7c
pbuf_alloc(length=90) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
pbuf_alloc(length=78)
pbuf_alloc: allocated pbuf 0x480e8
pbuf_alloc(length=78) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
pbuf_alloc(length=70)
pbuf_alloc: allocated pbuf 0x480e8
pbuf_alloc(length=70) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
pbuf_alloc(length=90)
pbuf_alloc: allocated pbuf 0x480e8
pbuf_alloc(length=90) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=arp_timer arg=0x0
tcpip: etharp_tmr()
etharp_timer
sys_timeout: 0x44810 msecs=5000 handler=arp_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
pbuf_alloc(length=70)
pbuf_alloc: allocated pbuf 0x480e8
pbuf_alloc(length=70) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
pbuf_alloc(length=70)
pbuf_alloc: allocated pbuf 0x480e8
pbuf_alloc(length=70) == 0x480e8
pbuf_free(0x480e8)
pbuf_free: deallocating 0x480e8
stmf calling h=arp_timer arg=0x0
tcpip: etharp_tmr()
etharp_timer
sys_timeout: 0x44810 msecs=5000 handler=arp_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=arp_timer arg=0x0
tcpip: etharp_tmr()
etharp_timer
sys_timeout: 0x44810 msecs=5000 handler=arp_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
stmf calling h=ip_reass_timer arg=0x0
tcpip: ip_reass_tmr()
sys_timeout: 0x44824 msecs=1000 handler=ip_reass_timer arg=0x0
^Z[1] + Stopped                 ./simhost

Which according to my understanding means that its executing these timeouts waitng for a mbox-message-fetch. So it keeps waiting and in the meanwhile executing these timeouts and giving these recurring logs. Want inputs as to what should be the correct operation of ./simhost. Coz for me it gives this kind of log.

My question is what is this simhost actually doing? supposed to do ? If I am getting these messages whats wrong !

Thanks in anticipation.
Regards




_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]