NKE - Socket filter - get local address problem.
NKE - Socket filter - get local address problem.
- Subject: NKE - Socket filter - get local address problem.
- From: "Erez Kaplan" <email@hidden>
- Date: Sun, 3 Jun 2007 11:50:05 +0200
- Thread-topic: NKE - Socket filter - get local address problem.
Title: NKE - Socket filter - get local address problem.
Hi,
10.4.9
NKE - Socket filter - get local address problem.
I am in need of redirecting tcp requests to an alternative host, based on source ip:port and destination ip:port
I am able to redirect the destination in the socket filter call back
tl_connect_out_fn, /* sf_connect_out_func */
by manipulating the <Socket_t to> param successfully.
HOWEVER - I am unable to obtain the local address at this point.
I have used
err = sock_getsockname(so, (struct sockaddr *) &local, (int)&len);
but I keep getting <0.0.0.0> as a result.
optionally is there another call back where I can examine both addresses and change the <to> prior to bind?
Thanks, Erez
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden