Once I deal with read/write, it should be easy to handle send*/recv* too.

I didn't get your argument that sockaddr can change. Once connection is 
established, the remote address can't change. It is IP address, so DNS is not 
involved. One exception is sendto() with a socket in connection-less mode, when 
it's possible to specify destination address for each message. But it's not a 
huge problem.

OpenSolaris sources 
(http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/stand/lib/sock/socket.c)
 define
struct inetboot_socket sockets[MAXSOCKET] = { 0 };
which contains all the addresses I need. Is it possible to access this array 
from DTrace?
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to