All of lore.kernel.org
 help / color / mirror / Atom feed
* wrong result with conntrack_create, expect_create
@ 2008-07-15  8:29 wang feng
  2008-07-15 10:18 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: wang feng @ 2008-07-15  8:29 UTC (permalink / raw)
  To: netfilter-devel

Hello,
I have done some test based on the libnetfilter_conntrack-0.0.96,something is
wrong with the samples under utils:

conntrack_create:
 TEST: create conntrack (0)(Success)
it should create a conntrack with src:1.1.1.1, dst:2.2.2.2
but: conntrack_get:
ipv4     2 tcp      6 98 src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0
bytes=0 [UNREPLIED] src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0 bytes=0
mark=0 use=2

expect_create:
TEST: add master conntrack (0)(Success)
TEST: create expectation (-1)(Invalid argument)

I have debugged, the parameters passed to the api are not wrong, something in
nflink(nfnl_query) perhaps not works...

see also bug#548,someone can help me to debug to see what happen with
it? thanks...

-- 
Feng Wang
Fakultät 5: Informatik, Elektrotechnik und Informationstechnik
Universität Stuttgart
Handy: +49 179 1403215
--
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] 4+ messages in thread

* Re: wrong result with conntrack_create, expect_create
  2008-07-15  8:29 wrong result with conntrack_create, expect_create wang feng
@ 2008-07-15 10:18 ` Pablo Neira Ayuso
  2008-07-15 10:23   ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2008-07-15 10:18 UTC (permalink / raw)
  To: wang feng; +Cc: netfilter-devel

wang feng wrote:
> Hello,
> I have done some test based on the libnetfilter_conntrack-0.0.96,something is
> wrong with the samples under utils:
> 
> conntrack_create:
>  TEST: create conntrack (0)(Success)
> it should create a conntrack with src:1.1.1.1, dst:2.2.2.2
> but: conntrack_get:
> ipv4     2 tcp      6 98 src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0
> bytes=0 [UNREPLIED] src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0 bytes=0
> mark=0 use=2
> 
> expect_create:
> TEST: add master conntrack (0)(Success)
> TEST: create expectation (-1)(Invalid argument)

You probably forgot to insmod:

* nf_conntrack_ipv4
* nf_conntrack_ftp, which is required to run the expect_create test.

I'm going to add a note in the sources of the test now.

> I have debugged, the parameters passed to the api are not wrong, something in
> nflink(nfnl_query) perhaps not works...
> 
> see also bug#548,someone can help me to debug to see what happen with
> it? thanks...

Please, confirm that this fixes your problem.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

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

* Re: wrong result with conntrack_create, expect_create
  2008-07-15 10:18 ` Pablo Neira Ayuso
@ 2008-07-15 10:23   ` Patrick McHardy
  2008-07-15 10:33     ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2008-07-15 10:23 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: wang feng, netfilter-devel

Pablo Neira Ayuso wrote:
> wang feng wrote:
>> Hello,
>> I have done some test based on the libnetfilter_conntrack-0.0.96,something is
>> wrong with the samples under utils:
>>
>> conntrack_create:
>>  TEST: create conntrack (0)(Success)
>> it should create a conntrack with src:1.1.1.1, dst:2.2.2.2
>> but: conntrack_get:
>> ipv4     2 tcp      6 98 src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0
>> bytes=0 [UNREPLIED] src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0 bytes=0
>> mark=0 use=2
>>
>> expect_create:
>> TEST: add master conntrack (0)(Success)
>> TEST: create expectation (-1)(Invalid argument)
> 
> You probably forgot to insmod:
> 
> * nf_conntrack_ipv4
> * nf_conntrack_ftp, which is required to run the expect_create test.
> 
> I'm going to add a note in the sources of the test now.

Ideally we would simply autoload the modules on create requests.
That would also be a first step to fix the NAT dependencies.

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

* Re: wrong result with conntrack_create, expect_create
  2008-07-15 10:23   ` Patrick McHardy
@ 2008-07-15 10:33     ` Pablo Neira Ayuso
  0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2008-07-15 10:33 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: wang feng, netfilter-devel

Patrick McHardy wrote:
> Pablo Neira Ayuso wrote:
>> wang feng wrote:
>>> Hello,
>>> I have done some test based on the
>>> libnetfilter_conntrack-0.0.96,something is
>>> wrong with the samples under utils:
>>>
>>> conntrack_create:
>>>  TEST: create conntrack (0)(Success)
>>> it should create a conntrack with src:1.1.1.1, dst:2.2.2.2
>>> but: conntrack_get:
>>> ipv4     2 tcp      6 98 src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0
>>> packets=0
>>> bytes=0 [UNREPLIED] src=0.0.0.0 dst=0.0.0.0 sport=0 dport=0 packets=0
>>> bytes=0
>>> mark=0 use=2
>>>
>>> expect_create:
>>> TEST: add master conntrack (0)(Success)
>>> TEST: create expectation (-1)(Invalid argument)
>>
>> You probably forgot to insmod:
>>
>> * nf_conntrack_ipv4
>> * nf_conntrack_ftp, which is required to run the expect_create test.
>>
>> I'm going to add a note in the sources of the test now.
> 
> Ideally we would simply autoload the modules on create requests.
> That would also be a first step to fix the NAT dependencies.

I'll include that in my next patchset.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

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

end of thread, other threads:[~2008-07-15 10:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15  8:29 wrong result with conntrack_create, expect_create wang feng
2008-07-15 10:18 ` Pablo Neira Ayuso
2008-07-15 10:23   ` Patrick McHardy
2008-07-15 10:33     ` Pablo Neira Ayuso

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.