This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Reading ARP Table and Spinlocks
- From: "David Harton" <dharton at telesyn dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 26 Mar 2004 15:04:21 -0500
- Subject: [ECOS] Reading ARP Table and Spinlocks
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