From mboxrd@z Thu Jan 1 00:00:00 1970 From: fordearlinux@gmail.com (shivanth) Date: Tue, 22 Nov 2011 21:46:53 +0530 Subject: Path for STOLEN Packets!!! In-Reply-To: References: Message-ID: <4ECBCAF5.10005@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 11/22/2011 1:26 PM, Kesava Srinivas wrote: > Hi , > Even after lot of google; didn't get the accurate answer for this. > After STEALING Packets (NF_STOLEN); want to send the Manipulated > Packet (added extra header) to some of the available net devices. > Please let me know what is the Function that I Should call to do this > step ?? Also; once the skb was expanded by 20 bytes to add new ip > header; do I need to reassign the skb pointer to the new location ?? > > -Thanks in Advance, > VKS > > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Hi srinivas, You can send/transmit the manipulated skb buffer by passing it to dev_queue_xmit . Be carefull though, any error crafting the packet, a kernel panic is waiting 4 you :-) These articles might help http://www.phrack.org/issues.html?issue=61&id=13 http://www.phrack.org/issues.html?issue=55&id=12#article Regards shivanth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111122/508bae9e/attachment.html