* libnetfilter-queue and the Callback
@ 2010-10-19 17:31 Mistick Levi
0 siblings, 0 replies; only message in thread
From: Mistick Levi @ 2010-10-19 17:31 UTC (permalink / raw)
To: netfilter-devel
Hi,
a quick question.
when i register a queue ( create_queue) i specify the callback, then i
need a loop that will use the fd (socket) and recv the packets from
the queue...
if so,
1. why do i need to call "handle_packet", what is the process that
happens ? ( For example: why can't i just process the buffer as is and
return a verdict).
or,
2. why if i register a callback, i also need to be the one that
"executing" that callback, and not be called by the netfilter hook
QUEUE ?
3. In the callback i need to return - lower than 0 to "stop
processing" else, it will continue processing. What does this
processing mean? since most example's show only the "return
set_verdict", though i don't have to return a verdict at that point. (
So what does the cb return value is used for ? )
4. If i return "stop processing " in the callback, will the packet
drop? or what?...
5. Set verdict is the function that actually reinject the packet and
continue it's process . right?
Kind regards
Yechiel Levi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-19 17:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 17:31 libnetfilter-queue and the Callback Mistick Levi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).