• 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
NKE tcp redirect socket filter 10.4+
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NKE tcp redirect socket filter 10.4+


  • Subject: NKE tcp redirect socket filter 10.4+
  • From: Erez Kaplan <email@hidden>
  • Date: Thu, 10 May 2007 09:02:23 +0300

I have read the following:
Network Kernel Extensions
2007-04-03

I need to intercept in NKE, brower requests to
a certain host name and redirect it to another. (it eventually should get back to the browser)
I am looking into "socket filter" but so far with no success.
I am trying in "tl_connect_out_fn(void *cookie, socket_t so, const struct sockaddr *to)" to manipulate the host

Does the below extraction claim it's possible?


http://developer.apple.com/documentation/Darwin/Conceptual/NKEConceptual/SocketManipulation/chapter_3_section_3.html#//apple_ref/doc/uid/TP40001858-CH235-DontLinkElementID_6


#==================================
Note: If you were considering calling sock_close to redirect a socket to a different location, 
you can do this by intercepting the connection request with a socket filter and redirecting the stream when the application first opens the socket. 
Once opened, however, a stream cannot be redirected. For more information, see “Socket filters.”
#==================================


Erez Kaplan
Independent software developer OSX
email@hidden




 _______________________________________________
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

  • Follow-Ups:
    • Re: NKE tcp redirect socket filter 10.4+
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: SSH inside Objective C
  • Next by Date: Re: NKE tcp redirect socket filter 10.4+
  • Previous by thread: Re: SSH inside Objective C
  • Next by thread: Re: NKE tcp redirect socket filter 10.4+
  • Index(es):
    • Date
    • Thread