Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NKE tcp redirect socket filter 10.4+



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




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.