[ECOS] Reading ARP Table and Spinlocks
David Harton
dharton@telesyn.com
Fri Mar 26 20:04:00 GMT 2004
Greetings,
I'm using eCos2 on a PQ2 platform I'm implementing code to retrieve the
ARP table for debugging and SNMP purposes.
I've noticed looking at the SNMP code provided by eCos that it appears
to access the global data without using spinlocks (e.g. splsoftnet).
For example, the var_tcpConnTable function simply iterates over the
tcbtable (or tcb depending on which stack you use) without grabbing the
spinlock to protect the stack data while it walks the list.
I'm new to eCos and dealing with the internals of the TCP/IP stack so
I'm sure I'm missing something but isn't there danger of the data
changing or even worse the table entries being removed and accessing
invalid data?
Thanks,
Dave
--
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