Re: How can I know a packet destination?
Re: How can I know a packet destination?
- Subject: Re: How can I know a packet destination?
- From: Miro Jurišić <email@hidden>
- Date: Thu, 2 Dec 2004 17:33:32 -0500
In fact, I'm doing a sniffer using libpcap, but I'll like to know the
application related to the packet, but it don't look to be possible
"as is".
In that case you should look at lsof sources and see how it does this.
If you run lsof, you will see something like this among its output:
iChatAgen 934 meeroh 7u IPv4 0x038e0a68 0t0 TCP
*:5298 (LISTEN)
So, using the same technique, you should be find out which process has
which ports open, and therefore look at an incoming packet and
determine which process it will go to.
hth
meeroh
--
<http://web.meeroh.org/> | KB1FMP
"And when I have understanding of computers, I shall be
the supreme being!" -- Evil, "Time Bandits"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden