This is a discussion on Raw packet capture and sending within the Linux Networking forums, part of the Linux Forums category; Hi ! I have device(ARM920T) and Linuxm, that runs on it. I look for ways to make the next things: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi !
I have device(ARM920T) and Linuxm, that runs on it. I look for ways to make the next things: 1) Make my program to capture raw packets and forward them to the server-appplication, without kernel to process this packet to my application (i.e. avoid packet duplication) 2) Send received packet to the server-application. I found a way to make program capture raw packets, but kernel process these packets and server-application receives packets from kernel. How to make kernel not to process packets, which I'm interested in ? |
|
|||
|
Konstantin Grudnev wrote:
> Hi ! > > I have device(ARM920T) and Linuxm, that runs on it. > > I look for ways to make the next things: > > 1) Make my program to capture raw packets and forward them to the > server-appplication, without kernel to process this packet to my application > (i.e. avoid packet duplication) > > 2) Send received packet to the server-application. > > I found a way to make program capture raw packets, but kernel process these > packets and server-application receives packets from kernel. > > How to make kernel not to process packets, which I'm interested in ? > > > > Hi, Are you using libpcap in your program? I think you should try to incorporate *your* program into the receiving application itself. That way, the application will receive and process the packet copies. If you find another way of doing this please let me know because I need to do a similar thing ;-) |