Reputation: 2201
There is an application running on a FreeBSD 10.1 release
operating system and i need to figure out how to find the sockets it has created and is using. I know that i'm looking for an AF_MAP
socket which should be similar to a AF_UNIX
socket.
How do i see what sockets are open, and once i find the one im looking for i need to see what information passes through. how is this also done? Thankyou
Upvotes: 1
Views: 1172
Reputation: 592
I'm not sure on FreeBSD specifically but you can use lsof
in a way like:
$ lsof -p $(pidof your-appname)
This will give you all the files it has opened.
For AF_UNIX
sockets you may refer to this.
Also, you may want to use netstat -xa
to see CONNECTED
state sockets (if the application uses stream oriented sockets)
Upvotes: 1