Skip to contentSkip to conversation

wrong result with conntrack_create, expect_create

DISCUSSION wang feng 3 participants 4 messages Jul 15, 2008 netfilter

lore
Share & tools
lore

wang feng

author
#0 lore raw

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

Signature · 8 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 12 lines · wang feng

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

Quoted 3 lines

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.

Quoted 5 lines

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.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
#2 lore raw
Quoted 17 lines · Pablo Neira Ayuso
Quoted 12 lines · wang feng

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

Quoted 3 lines

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

Quoted 6 lines

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.

#3 lore raw
Quoted 23 lines · Patrick McHardy
Quoted 22 lines · Pablo Neira Ayuso
Quoted 15 lines · wang feng

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

Quoted 3 lines

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

You probably forgot to insmod:

Quoted 7 lines
Quoted 4 lines

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

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers