LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-26-2007, 08:49 AM   #1
Kincaid
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
libipt_quota.c and ipt_quota.c


Hello,

after the reinstallation of the kernel (recompilation) - in version 2.6.17, I patched it with the patchset available from SNAJ.
Everything was quite fine, except for QUOTA facility (for iptables).
Also downloaded the iptables 1.3.5 version.
Recompiled without patching it at all.
Although for the iptables there was libipt_quota available, for the linux kernel - there was none.
So I got that from the latest patch-o-matic-ng release, having ipt_quota available inside (release 6600) - still, the quota had marking from release 4018 (http://svn.netfilter.org/cgi-bin/vie...ets/?rev=6600).

Problem is, that it compiles all fine, even perfect. But the problem is, when I try to use it. For test purpose, I checked a simple command:

iptables -A quota_check -s 0/0 -d 10.10.7.12 -m quota --quota 300 -j RETURN

But what I get in the logs is:

localhost kernel: ip_tables: quota match: invalid size 0 != 12

I checked the google, but there was something about missed values between .size and .userspacesize within libipt_quota.c and ipt_quota.c (iptables and kernel itself).
In the iptables - libipt_quota.c, there is .userspacesize, but in the kernel - ipt_quota.c, there is no such a field. If I tried to add it, of course - compile error. I checked - both header files are exactly the same for the kernel and iptables.

Has anyone seen this error? Could anyone help me with it?
Thanks in advance...

Michael
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling libipt_quota when compiling iptables jayakrishnan Linux - Software 1 08-25-2006 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration