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

Re(2): NKE tcp redirect socket filter 10.4+


  • Subject: Re(2): NKE tcp redirect socket filter 10.4+
  • From: "Peter Lovell" <email@hidden>
  • Date: Thu, 10 May 2007 15:25:48 -0400

On Thu, May 10, 2007, Erez Kaplan <email@hidden> wrote:

> >The documentation does exist to accomplish this on your own
>Which documentation are you referring to other than "NKEConceptual"?
>I have gone through it many times, but other than scattered hints, I
>found nothing.
>
>I am basing my work on "tcplognke"
>Is this the correct starting point?
>
>


Hi Erez,

the capability does indeed work, although it is not for the faint of heart.

Since Josh is (sort of) away, I'll help get this going for you.

The older documentation is somewhat skimpy, and possibly dates from the
time when the capability did *not* work (unless you applied kernel
patches -- wheee!!). Fortunately, those days are long gone and KPI is
your friend.

Essentially you have to replace the contents in the destination address,
usually a sockaddr_in but might also be sockaddr_in6, with your wanted
destination address and port.

Something like ...

struct sockaddr_in *sdest = (struct sockaddr_in *)to;

sdest->sin_port = myDest.sin_port;
sdest->sin_addr.s_addr = myDest.sin_addr.s_addr;


Regards.....Peter

 _______________________________________________
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: Re(2): NKE tcp redirect socket filter 10.4+
      • From: Erez Kaplan <email@hidden>
References: 
 >NKE tcp redirect socket filter 10.4+ (From: Erez Kaplan <email@hidden>)
 >Re: NKE tcp redirect socket filter 10.4+ (From: Josh Graessley <email@hidden>)
 >Re: NKE tcp redirect socket filter 10.4+ (From: Erez Kaplan <email@hidden>)
 >Re: NKE tcp redirect socket filter 10.4+ (From: Josh Graessley <email@hidden>)
 >Re: NKE tcp redirect socket filter 10.4+ (From: Erez Kaplan <email@hidden>)

  • Prev by Date: Re: Aaron's Network Progr With Sockets chapter questions
  • Next by Date: Ignoring credentials in shared NSURLCredentialStorage
  • Previous by thread: Re: NKE tcp redirect socket filter 10.4+
  • Next by thread: Re: Re(2): NKE tcp redirect socket filter 10.4+
  • Index(es):
    • Date
    • Thread