user98651 user98651 - 4 months ago 43
C++ Question

Splitting a Netfilter packet

I want to be able to, when a packet comes in, split it into two packets (two different destinations in ip header) and pass this back to netfilter.
I am using c++ if that helps.

Is this possible in any way?



I have found the best way to do this is by sending the data by means of raw packets, as long as you manually fill in the ip header yourself.