libnetfilter-queue and the Callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
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


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux