* Expectation not quite up to where I want it
@ 2008-10-04 22:36 Jan Engelhardt
2008-10-08 13:07 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2008-10-04 22:36 UTC (permalink / raw)
To: Netfilter Developer Mailing List
I am not quite sure whether it is possible to even set up an
expectation when ctstate(ct) == IP_CT_NEW, is it? Fact is, this piece
of code segfaults on me right away in nf_ct_expect_related(),
possibly because exp->master or so is NULL, causing bad things when
issuing nfct_help(exp->master) in nf_ct_expect_related.
Any hints?
→ nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, PF_INET6,
→ → (const union nf_inet_addr *)&iph->daddr,
→ → (const union nf_inet_addr *)&iph->saddr,
→ → IPPROTO_MH, NULL, &man);
→ printk(KERN_INFO "expectation set up\n");
→ nf_ct_dump_tuple(&exp->tuple);
→ if (nf_ct_expect_related(exp) != 0)
→ → printk(KERN_INFO "hm\n");
→ nf_ct_expect_put(exp); /* yes no ? /
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Expectation not quite up to where I want it
2008-10-04 22:36 Expectation not quite up to where I want it Jan Engelhardt
@ 2008-10-08 13:07 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-10-08 13:07 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Netfilter Developer Mailing List
Jan Engelhardt wrote:
>
> I am not quite sure whether it is possible to even set up an
> expectation when ctstate(ct) == IP_CT_NEW, is it?
It is - TFTP, SIP and netbios_ns are doing this.
> Fact is, this piece
> of code segfaults on me right away in nf_ct_expect_related(),
> possibly because exp->master or so is NULL, causing bad things when
> issuing nfct_help(exp->master) in nf_ct_expect_related.
> Any hints?
>
> → nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, PF_INET6,
> → → (const union nf_inet_addr *)&iph->daddr,
> → → (const union nf_inet_addr *)&iph->saddr,
> → → IPPROTO_MH, NULL, &man);
> → printk(KERN_INFO "expectation set up\n");
> → nf_ct_dump_tuple(&exp->tuple);
> → if (nf_ct_expect_related(exp) != 0)
> → → printk(KERN_INFO "hm\n");
> → nf_ct_expect_put(exp); /* yes no ? /
^ yes
The part above is correct, the bug must be elsewhere.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-08 13:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-04 22:36 Expectation not quite up to where I want it Jan Engelhardt
2008-10-08 13:07 ` Patrick McHardy
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.