netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* conntrack untracked match is broken
@ 2009-06-22  6:31 Philip Craig
  2009-06-25 16:46 ` conntrack untracked match is broken (kernel patch) Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Craig @ 2009-06-22  6:31 UTC (permalink / raw)
  To: netfilter-devel

# iptables -I INPUT -m conntrack --ctstate UNTRACKED
# iptables -L INPUT
Chain INPUT (policy DROP)
target     prot opt source               destination
           all  --  anywhere             anywhere            ctstate
(ctstate isn't matching anything.)

The problem is that state_mask in 'struct xt_conntrack_mtinfo1' is
only 8 bit, but XT_CONNTRACK_STATE_UNTRACKED == 256.
Unfortunately, gcc doesn't warn about this for '|=', only for '='.

A workaround is to use -m state --state UNTRACKED

Looks like we need a conntrack match v2 to fix this?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-29 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22  6:31 conntrack untracked match is broken Philip Craig
2009-06-25 16:46 ` conntrack untracked match is broken (kernel patch) Jan Engelhardt
2009-06-25 16:48   ` conntrack untracked match is broken (userspace patch) Jan Engelhardt
2009-06-26  7:45   ` conntrack untracked match is broken (kernel patch) Philip Craig
2009-06-29 12:34   ` Patrick McHardy

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