On Dec 2, 2014, at 10:10 PM, Madhavi Gundeti <madhavi.gundet...@gmail.com> 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, <macnetworkprog-requ...@lists.apple.com> > wrote: > Send Macnetworkprog mailing list submissions to > macnetworkprog@lists.apple.com > > 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 > macnetworkprog-requ...@lists.apple.com > > You can reach the person managing the list at > macnetworkprog-ow...@lists.apple.com > > 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 <madhavi.gundet...@gmail.com> > To: macnetworkprog@lists.apple.com > 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!\"" <eski...@apple.com> > To: "macnetworkprog@lists.apple.com Programming" > <macnetworkprog@lists.apple.com> > Subject: Re: Open Directory Query - What am I doing wrong? > Message-ID: <0ac28e52-c88a-4c0a-80b0-09fb4e829...@apple.com> > Content-Type: text/plain; charset=iso-8859-1 > > > On 22 Nov 2014, at 15:55, Fabian Jäger <fabian.jae...@chungwasoft.com> 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!\"" <eski...@apple.com> > To: "macnetworkprog@lists.apple.com Programming" > <macnetworkprog@lists.apple.com> > Subject: Re: Socket Filtering NKE > Message-ID: <aa234a10-7b47-4c3c-9efd-eeb334831...@apple.com> > Content-Type: text/plain; charset=us-ascii > > > On 24 Nov 2014, at 06:47, Madhavi Gundeti <madhavi.gundet...@gmail.com> 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 > Macnetworkprog@lists.apple.com > 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 (Macnetworkprog@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/macnetworkprog/apple%40kevin.com > > This email sent to ap...@kevin.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com