> -----Original Message----- > Em 23 de março de 2012 19:11, Jeff Haran <jharan@xxxxxxxxxxxxxx> > escreveu: > >> -----Original Message----- > >> From: netfilter-devel-owner@xxxxxxxxxxxxxxx [mailto:netfilter-devel- > >> owner@xxxxxxxxxxxxxxx] On Behalf Of Fr3DBr > >> Sent: Friday, March 23, 2012 2:59 PM > >> To: netfilter-devel@xxxxxxxxxxxxxxx > >> Subject: Netfilter Packet Reinjection > >> > >> Hello, > >> > >> I'm writting a module to deal with certain packets, and i wanted to > >> DROP then initially, store it, and at an later moment, reinject it > >> before the routing decision. > >> > >> What would be the method i could call, to place the packet again in > >> the stack at this point ?! > >> > >> Thanks, > >> > >> Fred > > > > You probably want to take a look at nf_reinject() in > net/netfilter/nf_queue.c. > > > > Jeff Haran > From: Fr3DBr [mailto:fr3dbr@xxxxxxxxx] > Sent: Friday, March 23, 2012 3:12 PM > To: Jeff Haran > Cc: netfilter-devel@xxxxxxxxxxxxxxx > Subject: Re: Netfilter Packet Reinjection > I did, but i didn't wanted to implement a queue, but just do what i > said directly ! > Fixing the top post. I assume by "I didn't wanted to implement a queue", you meant you didn't want to use an NF_QUEUE to put the packets to user space. Fine. Nobody said you had to use a user space queue. But if you want to hang onto packets for later re-injection, calling nf_reinject() is one way to do it. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html