How to proxy a non blocking connect with a socket filter?
How to proxy a non blocking connect with a socket filter?
- Subject: How to proxy a non blocking connect with a socket filter?
- From: "Karl Pickett" <email@hidden>
- Date: Tue, 9 Oct 2007 15:39:46 -0400
After having run into the unfortunate limitation of a socket filter not being able to stop or delay a remote tcp socket close from being visible, I am trying to find another way to solve the problem.
I have changed my socket filter to proxy connects to a user space process instead of swallowing packets as proposed by the message below. This appears to be working well for blocking connects, but I have no idea how to hook a non blocking connect properly.
In message
http://lists.apple.com/archives/darwin-kernel/2007/Mar/msg00081.htmlit says:
If the socket is a non-blocking socket, things may be a little
trickier. I can't remember the exact details, but it can be made to
work.
Would someone know those details? :)
--
Karl Pickett
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin
"Eternal vigilance is the price of liberty." -- Wendell Phillips
"One man with courage makes a majority." -- Andrew Jackson, 1832
_______________________________________________
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