Thread (16 messages) 16 messages, 3 authors, 2009-06-04

Re: [resend] Passive OS fingerprint xtables match.

From: Evgeniy Polyakov <hidden>
Date: 2009-06-04 12:07:21
Also in: netfilter-devel

On Thu, Jun 04, 2009 at 01:53:05PM +0200, Patrick McHardy (kaber@trash.net) wrote:
quoted
That's hard - there is no hook number in the match function, so we do
not really know if it is forward, input or prerouting.
This is really needed, spamming the ring buffer is not a good option.

I'd say just add the hook number to xt_match_param. Its a bit
inconsistent anyways that we're handing it to checkentry for
validation, but not to the match function.
Doesn't checkentry receive a mask of all possible hooks? There is still
no per-packet hook number. Although we can always use INPUT hook since
its the most widely used one. And drop a comment about this abuse.

-- 
	Evgeniy Polyakov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help