Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-21 Thread Patrick McHardy

Jones Desougi wrote:

Try the patch below. (It's bug #413 in bugzilla)



Applied, thanks Jones.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-13 Thread DervishD
Hi Salim :)

 * Salim [EMAIL PROTECTED] dixit:
I got this problem while trying to shape traffic with iptables MARK and
 HTB.
 
 MARK: targinfosize 8 != 4
 
 --set-mark gives invalid argument error message.

 Kernel version is 2.4.29 (some patches from patch o matic applied)
 Iptables version 1.3.4
 
 Intel x86 architecture.
 
 I saw this problem discussed in a few places, but the discussions didn't
 come to a conclusion or solution.

You've hit a bug in iptables :( I've notified in the bugzilla but
I have had no answers. You're building iptables with no shared
libraries (NO_SHARED_LIBS=1). This means that the code in iptables,
when loading the modules for the matches and targets is taking a
slightly different code path. The problem is that the MARK target
has two versions, 0 and 1, and kernel 2.4.x (at least until 31)
supports only version 0. If you don't use share libraries in
iptables, both versions are loaded and v1 is used instead of v2.
Unfortunately, v1 has a bigger data structure than v0 and your kernel
complaints.

The only solution for your problem is to rebuild iptables with
shared libraries instead of compiling the matches and targets in the
binary, statically. I've tried to make a patch, and worked for me but
I don't want to mess anything so I've described the problem, the
wrong code path and other details to the iptables people. If you want
to take a look the bug is #413 in bugzilla.netfilter.org

And yes, nobody seems to have this problem because it seems that
only few people uses iptables built statically :?? or because nobody
seems to be interested.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net  http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-13 Thread Patrick McHardy

DervishD wrote:

Hi Salim :)

 * Salim [EMAIL PROTECTED] dixit:


  I got this problem while trying to shape traffic with iptables MARK and
HTB.

MARK: targinfosize 8 != 4

--set-mark gives invalid argument error message.

Kernel version is 2.4.29 (some patches from patch o matic applied)
Iptables version 1.3.4

Intel x86 architecture.

I saw this problem discussed in a few places, but the discussions didn't
come to a conclusion or solution.



You've hit a bug in iptables :( I've notified in the bugzilla but
I have had no answers. You're building iptables with no shared
libraries (NO_SHARED_LIBS=1). This means that the code in iptables,
when loading the modules for the matches and targets is taking a
slightly different code path. The problem is that the MARK target
has two versions, 0 and 1, and kernel 2.4.x (at least until 31)
supports only version 0. If you don't use share libraries in
iptables, both versions are loaded and v1 is used instead of v2.
Unfortunately, v1 has a bigger data structure than v0 and your kernel
complaints.


That can't be the reason, all revisions of a single match/target are
in the same object file and the supported revision is (supposed to be)
probed. Salim, can you send a strace of the failing iptables command?
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-13 Thread DervishD
Hi Jones :)))

 * Jones Desougi [EMAIL PROTECTED] dixit:
  That can't be the reason, all revisions of a single match/target
  are in the same object file and the supported revision is
  (supposed to be) probed.

They are not due to the DONT_LOAD usage ;)) The patch below is
much better than the one I tested ;)))

 Try the patch below. (It's bug #413 in bugzilla)

Thanks a lot :)) I'll test it as soon as I can.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net  http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-13 Thread Patrick McHardy

Jones Desougi wrote:

That can't be the reason, all revisions of a single match/target are
in the same object file and the supported revision is (supposed to be)
probed. Salim, can you send a strace of the failing iptables command?



The key being supposed to be. :-)


I somehow expected something like this :)


Try the patch below. (It's bug #413 in bugzilla)


This looks good, thanks. I'm going to apply it as soon as
there is confirmation that it really fixes the problem
people are seeing.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] MARK: targinfosize 8 != 4

2005-12-13 Thread Salim
It worked when I changed to NO_SHARED_LIBS=0.
thanks guys.
will try out the patch today.

the command that was failing was a simple --set-mark. Let me know if anyone
still wants an strace. Will send it.

- Original Message -
From: Patrick McHardy [EMAIL PROTECTED]
To: DervishD [EMAIL PROTECTED]
Cc: Salim [EMAIL PROTECTED]; lartc@mailman.ds9a.nl; Netfilter
Development Mailinglist [EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 8:01 PM
Subject: Re: [LARTC] MARK: targinfosize 8 != 4


 DervishD wrote:
  Hi Salim :)
 
   * Salim [EMAIL PROTECTED] dixit:
 
I got this problem while trying to shape traffic with iptables MARK
and
 HTB.
 
 MARK: targinfosize 8 != 4
 
 --set-mark gives invalid argument error message.
 
 Kernel version is 2.4.29 (some patches from patch o matic applied)
 Iptables version 1.3.4
 
 Intel x86 architecture.
 
 I saw this problem discussed in a few places, but the discussions didn't
 come to a conclusion or solution.
 
 
  You've hit a bug in iptables :( I've notified in the bugzilla but
  I have had no answers. You're building iptables with no shared
  libraries (NO_SHARED_LIBS=1). This means that the code in iptables,
  when loading the modules for the matches and targets is taking a
  slightly different code path. The problem is that the MARK target
  has two versions, 0 and 1, and kernel 2.4.x (at least until 31)
  supports only version 0. If you don't use share libraries in
  iptables, both versions are loaded and v1 is used instead of v2.
  Unfortunately, v1 has a bigger data structure than v0 and your kernel
  complaints.

 That can't be the reason, all revisions of a single match/target are
 in the same object file and the supported revision is (supposed to be)
 probed. Salim, can you send a strace of the failing iptables command?

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] MARK: targinfosize 8 != 4

2005-12-12 Thread Salim
Hello all,
   I got this problem while trying to shape traffic with iptables MARK and
HTB.

MARK: targinfosize 8 != 4

--set-mark gives invalid argument error message.

Kernel version is 2.4.29 (some patches from patch o matic applied)
Iptables version 1.3.4

Intel x86 architecture.

I saw this problem discussed in a few places, but the discussions didn't
come to a conclusion or solution.

please help...

thanks
Salim


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc