Ethereal-users: RE: [Ethereal-users] Does Libpcap library supports Unix sockets

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Fri, 17 Feb 2006 12:15:30 +0100
Cytowanie "santosh.soule@xxxxxxxxx" <santosh.soule@xxxxxxxxx>:

> Server will open an unix socket and Client(my application) will open an
> unix socket and connect to it. After this I will build the packet(using
> Libnet API) and will write on to the Unix socket. After this server will
> reply back on this socket and I need to capture the packets from this
> unix socket.

I don't think one can talk about packets in case of UNIX socket, there's simply
a data stream passing through the descriptor. I'd rather use strace/ltrace/truss
or similar tool to intercept read/write operations. 

It would be nice to have a tool that attaches to a given process and dumps all
data passing through a given descriptor in some nice format, though. It seems
feasible using PTRACE interface.

Regards,
Przemyslaw