LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Packet Generation in the Kernel (https://www.linuxquestions.org/questions/linux-networking-3/packet-generation-in-the-kernel-891720/)

chandrub2w 07-14-2011 09:55 AM

Packet Generation in the Kernel
 
Hi Guys,
I am learning about net filters and i am practicing some sample programs on it. I am very new to this and I have a general query. I got the packet to a desired function using PRE_ROUTING hook. now how do i frame a packet from this point ? I am just trying to simulate a echo client server program in the kernel level using these hooks . can someone point to me some useful info on sockets in the kernel level ?

Thanks in Advance ...

nini09 07-14-2011 02:25 PM

In net filter hook, they don't use socket API, use skb API.


All times are GMT -5. The time now is 04:35 AM.