On Dec 2, 2014, at 10:10 PM, Madhavi Gundeti <[email protected]>
wrote:
>
> I have looked into the tcplognke sample code, In this sample the same IP
> address is re injected at later time.
>
> Is it possible to re inject IP address with some strings appending to it ?
>
> For example:
> i/p : 74.125.236.161(swallow this)
> re injected packet should be: 74.125.236.161/#q=madhavi
>
> Is above scenario is possible? Can we re inject the entire string
> "74.125.236.161/#q=madhavi" ??
The code isn’t injecting the IP address, it’s injecting saved data on a socket:
result = sock_inject_data_out(tlq->so, NULL, tlq->data,
tlq->control, tlq->flags);
In this call, tlq->data is being injected on a (connected) socket, tlq->so.
You can modify the data being injected.
Maybe I’m misunderstanding your question…
Kevin
>
> Thanks and Regards,
> Madhavi G.
>
> On Tue, Nov 25, 2014 at 1:30 AM, <[email protected]>
> wrote:
> Send Macnetworkprog mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/macnetworkprog
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Macnetworkprog digest..."
>
>
> Today's Topics:
>
> 1. Socket Filtering NKE (Madhavi Gundeti)
> 2. Re: Open Directory Query - What am I doing wrong?
> (Quinn "The Eskimo!")
> 3. Re: Socket Filtering NKE (Quinn "The Eskimo!")
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 Nov 2014 12:17:12 +0530
> From: Madhavi Gundeti <[email protected]>
> To: [email protected]
> Subject: Socket Filtering NKE
> Message-ID:
> <cahu+rf+qvxad9uojt0wtaptfmp05kmixqf_kn14rmzoenc8...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> I am developing Network kernel extension for Mac Yosemite.
> For Socket filtering, I am referring to below link.
>
> https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/NKEConceptual/socket_nke/socket_nke.html#//apple_ref/doc/uid/TP40001858-CH228-SW1
>
> But I am not finding any sample code with name "tcplognke" at ADC sample
> code.
>
> Where to find this sample code for Socket filtering ??
> How to re inject new IP address using mbuf ??
>
> Thanks and Regards,
> Madhavi G.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.apple.com/mailman/private/macnetworkprog/attachments/20141124/4beb2e4e/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 24 Nov 2014 09:53:07 +0000
> From: "Quinn \"The Eskimo!\"" <[email protected]>
> To: "[email protected] Programming"
> <[email protected]>
> Subject: Re: Open Directory Query - What am I doing wrong?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> On 22 Nov 2014, at 15:55, Fabian Jäger <[email protected]> wrote:
>
> > I am trying to query an LDAP directory through the Open Directory framework.
>
> When folks have problems with the OD API I generally recommend that they
> prototype the request in <x-man-page://1/dscl>. So, if you do the following
> in dscl, does your user show up?
>
> $ dscl
> Entering interactive mode... (type "help" for commands)
> > cd /Search/Users
> /Search/Users > ls
> _amavisd
> ...
>
> Share and Enjoy
> --
> Quinn "The Eskimo!" <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 24 Nov 2014 09:55:45 +0000
> From: "Quinn \"The Eskimo!\"" <[email protected]>
> To: "[email protected] Programming"
> <[email protected]>
> Subject: Re: Socket Filtering NKE
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
>
> On 24 Nov 2014, at 06:47, Madhavi Gundeti <[email protected]> wrote:
>
> > Where to find this sample code for Socket filtering ??
>
> "tcplognke" is in the 'retired' section of the documents library.
>
> <https://developer.apple.com/legacy/library/samplecode/tcplognke/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003669>
>
> This isn't an indication that the technology as a whole is deprecated, just
> that no one has got around to updating the sample in a while and thus it
> doesn't build out of the box.
>
> Earlier this year I updated "enetlognke". You should look at that sample for
> general information about how to code, build and install NKEs on modern
> systems. You can then look at "tcplognke" itself for information specific to
> socket-level NKEs.
>
> <https://developer.apple.com/library/mac/samplecode/enetlognke/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003579>
>
> Share and Enjoy
> --
> Quinn "The Eskimo!" <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Macnetworkprog mailing list
> [email protected]
> https://lists.apple.com/mailman/listinfo/macnetworkprog
>
> End of Macnetworkprog Digest, Vol 11, Issue 112
> ***********************************************
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/macnetworkprog/apple%40kevin.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com
This email sent to [email protected]