• 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
Attaching an NKE to Existing Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attaching an NKE to Existing Sockets


  • Subject: Attaching an NKE to Existing Sockets
  • From: Jones Curtis <email@hidden>
  • Date: Tue, 29 Aug 2006 14:23:02 -0400

I hope this is an appropriate place for this question; if not, if you have any good suggestions on where I might get an answer, let me know. I've searched all over and found very little.

Briefly, I would like to be able to attach a socket filter to sockets (including listeners) that were created prior to the loading of my NKE.

I looked at how netstat worked, using a sysctl to get at tcbinfo, and after digging through various structs, I wasn't convinced that I'd be able to get a socket_t out of that, even if I could figure out how to get at that symbol.

I also saw that every open socket is added to the associated proc struct (I think), but I wasn't sure how I could distinguish between sockets and non-sockets. And I thought I might be reduced to iterating through all possible pids, unless I could similarly get access to the pidhashtbl symbol.

And both of those ideas relied on symbols that I'm probably not supposed to be using, directly, anyway.

Anyway ... any help would be appreciated.

Thanks.


-- Curtis Jones email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: MacOSX books on kernel programming?
  • Next by Date: Re: Attaching an NKE to Existing Sockets
  • Previous by thread: Re: MacOSX books on kernel programming?
  • Next by thread: Re: Attaching an NKE to Existing Sockets
  • Index(es):
    • Date
    • Thread