• 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 - Socket filter - get local address problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: IONetworkingFamily
  • Next by Date: getaddrinfo for "localhost" gives a strange IP-address
  • Previous by thread: IONetworkingFamily
  • Next by thread: NKE - Socket filter - get local address problem.
  • Index(es):
    • Date
    • Thread