I am trying to simulate a tcp accleration algorithm on a linux machine. From what i understand i have to bypass the kernel network stack and relay the incomming packets to my custom code. I am currently looking at netfilter hooks to intercept the packets, but i dont understand how to pass packet to user space yet. can you help?
0
votes
1 Answers
0
votes
I would suggest to take a look at PACKET_MMAP facility which is available in Linux kernel and allows for packet reception built on a circular buffer ring mapped to user space. The document at the link is some sort of exhaustive, and also various examples exist such as libpcap.