• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I know a packet destination?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How can I know a packet destination? (From: Vincent Pottier <email@hidden>)
 >Re: How can I know a packet destination? (From: Miro Jurišić <email@hidden>)
 >Re: How can I know a packet destination? (From: Vincent Pottier <email@hidden>)

  • Prev by Date: Re: How can I know a packet destination?
  • Next by Date: Re: How can I know a packet destination?
  • Previous by thread: Re: How can I know a packet destination?
  • Next by thread: Re: How can I know a packet destination?
  • Index(es):
    • Date
    • Thread