LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   get packets from kernel and processing them and reinject (https://www.linuxquestions.org/questions/programming-9/get-packets-from-kernel-and-processing-them-and-reinject-4175457319/)

kikilinux 04-08-2013 04:50 AM

get packets from kernel and processing them and reinject
 
Hi

Anybody know what's the best API or package to get packets from kernel and do some processing on packet header or payload and reinject just some of the packets to network ?

Best

linosaurusroot 04-09-2013 04:03 AM

Haven't used it but suspect this is the first place to look:
http://en.wikipedia.org/wiki/Berkeley_Packet_Filter
http://www.tcpdump.org/papers/bpf-usenix93.pdf mentions a packet generator


All times are GMT -5. The time now is 03:10 PM.