* CONNMARK target without ip_conntrack
@ 2005-10-18 22:17 Piotr Chytla
2005-10-18 22:34 ` Pablo Neira
0 siblings, 1 reply; 2+ messages in thread
From: Piotr Chytla @ 2005-10-18 22:17 UTC (permalink / raw)
To: netfilter-devel
Hi
Today one of my friends told me about very simple problem with CONNMARK ,
after loading it without ip_conntrack, everything is ok but marking
isn't working .
In ipt_CONNMARK.c I've found in function target :
[..]
static unsigned int
target(struct sk_buff **pskb,
const struct net_device *in,
const struct net_device *out,
unsigned int hooknum,
const void *targinfo,
void *userinfo)
{
[..]
enum ip_conntrack_info ctinfo;
struct ip_conntrack *ct = ip_conntrack_get((*pskb), &ctinfo);
if (ct) {
[..] - set/save/restore mark
}
[..]
Mark set/restore/save is set when ip_conntrack structure exist , but
there is no warning message in logs about not loaded ip_conntrack or
something similar. Maybe it's wise to put some warning message :
if (ct) {
[..]
} else printk(KERN_ERR "CONNMARK: no conntrack!\n");
/pch
--
Dyslexia bug unpatched since 1977 ...
exploit has been leaked to the underground.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: CONNMARK target without ip_conntrack
2005-10-18 22:17 CONNMARK target without ip_conntrack Piotr Chytla
@ 2005-10-18 22:34 ` Pablo Neira
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira @ 2005-10-18 22:34 UTC (permalink / raw)
To: Piotr Chytla; +Cc: netfilter-devel
Piotr Chytla wrote:
> Mark set/restore/save is set when ip_conntrack structure exist , but
> there is no warning message in logs about not loaded ip_conntrack or
> something similar. Maybe it's wise to put some warning message :
>
> if (ct) {
> [..]
> } else printk(KERN_ERR "CONNMARK: no conntrack!\n");
No. Even with ip_conntrack loaded it could possible that a skb doesn't
have any conntrack associated: in that case it means that the packet is
considered invalid.
--
Pablo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-18 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 22:17 CONNMARK target without ip_conntrack Piotr Chytla
2005-10-18 22:34 ` Pablo Neira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.