I have a project in which multiple packets are captured by the IP_PRE_ROUTING hook of netfilter. I want to perform decoding on these packets and send multiple packets up to the application layer. I know how to do this for one packet, but the problem is that I am decoding 32 packets on the 32nd packet received. All 32 need to be passed on, so I cannot simply call NF_ACCEPT because that passes just a single packet on.

Do you have any ideas on the best way to send multiple packets to be delivered locally from a single IP_PRE_ROUTING hook call?

Thanks