Skip to contentSkip to conversation

time module

DISCUSSION richard lucassen 2 participants 6 messages Mar 13, 2007 – Mar 14, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I try to compile iptables-1.3.7 with the time module. AFAICS there is no need anymore for the patch-o-matic. There is a libipt_time.c in the extensions directory but no libipt_time.h in the include/linux/netfilter_ipv4 directory.

I searched here and there and found the extensions/Makefile. I added the time module to this Makefile, but with this result:

Unable to resolve dependency on linux/netfilter_ipv4/ipt_time.h.

Anyone a hint?

R.

Signature · 9 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
#1 lore raw
Quoted 11 lines · richard lucassen

Date: Tue, 13 Mar 2007 10:16:04 +0100
From: richard lucassen <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: time module

I try to compile iptables-1.3.7 with the time module. AFAICS there is no need anymore for the patch-o-matic. There is a libipt_time.c in the extensions directory but no libipt_time.h in the include/linux/netfilter_ipv4 directory.

Quoted 6 lines

I searched here and there and found the extensions/Makefile. I added the time module to this Makefile, but with this result:

Unable to resolve dependency on linux/netfilter_ipv4/ipt_time.h.

Anyone a hint?

You still have to apply ipt_time to the kernel.

Jan

#2 lore raw
Quoted 5 lines · On Wed, 14 Mar 2007 03:11:07 +0100 (MET) Jan Engelhardt…
Quoted 3 lines

Unable to resolve dependency on linux/netfilter_ipv4/ipt_time.h.

Anyone a hint?

You still have to apply ipt_time to the kernel.

Ok, thnx. I'll search for the patch.

Signature · 9 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
#3 lore raw
In reply to Jan Engelhardt
Quoted 5 lines · On Wed, 14 Mar 2007 03:11:07 +0100 (MET) Jan Engelhardt…
Quoted 3 lines

Unable to resolve dependency on linux/netfilter_ipv4/ipt_time.h.

Anyone a hint?

You still have to apply ipt_time to the kernel.

Just for information to the list (vanilla kernel 2.6.20.3). I sent a copy to Fabrice.

[..]
CC [M] net/ipv4/netfilter/ipt_time.o net/ipv4/netfilter/ipt_time.c: In function ___match___:
net/ipv4/netfilter/ipt_time.c:69: error: ___const struct sk_buff___ has no member ___named stamp___
net/ipv4/netfilter/ipt_time.c: At top level:
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
make[4]: *** [net/ipv4/netfilter/ipt_time.o] Error 1 make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20.3'
make: *** [debian/stamp-build-kernel] Error 2

Signature · 9 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
#4 lore raw

Re: time module (PATCH)

Quoted 16 lines · richard lucassen
Quoted 3 lines
Quoted 2 lines

Unable to resolve dependency on linux/netfilter_ipv4/ipt_time.h. Anyone a hint?

You still have to apply ipt_time to the kernel.

Just for information to the list (vanilla kernel 2.6.20.3). I sent a copy to Fabrice.

[..]
CC [M] net/ipv4/netfilter/ipt_time.o net/ipv4/netfilter/ipt_time.c: In function ___match___:
net/ipv4/netfilter/ipt_time.c:69: error: ___const struct sk_buff___ has no member ___named stamp___
net/ipv4/netfilter/ipt_time.c: At top level:
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type

Quoted 8 lines

net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
make[4]: *** [net/ipv4/netfilter/ipt_time.o] Error 1 make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20.3'
make: *** [debian/stamp-build-kernel] Error 2

Apply this on top (and perhaps forward it).

net/ipv4/netfilter/ipt_time.c +0 -1
Index: linux/net/ipv4/netfilter/ipt_time.c
===================================================================
@@ -97,7 +97,6 @@ checkentry(const char *tablename,
             const struct xt_match *match,
 #endif
            void *matchinfo,
-           unsigned int matchsize,
            unsigned int hook_mask)
 {
 	struct ipt_time_info *info = matchinfo;   /* match info for rule */

#<EOF>

I did not actually run into the named stamp thing.

Jan

#5 lore raw

Re: time module (PATCH)

Quoted 19 lines · On Wed, 14 Mar 2007 17:37:51 +0100 (MET) Jan Engelhardt…

Apply this on top (and perhaps forward it).

Index: linux/net/ipv4/netfilter/ipt_time.c
===================================================================

net/ipv4/netfilter/ipt_time.c +0 -1
@@ -97,7 +97,6 @@ checkentry(const char *tablename,
             const struct xt_match *match,
 #endif
            void *matchinfo,
-           unsigned int matchsize,
            unsigned int hook_mask)
 {
 	struct ipt_time_info *info = matchinfo;   /* match info for rule

*/
#<EOF>

Quoted 1 line

I did not actually run into the named stamp thing.

I'm sorry Jan....

$ patch -p0 < linux/net/ipv4/netfilter/patch 
patching file linux/net/ipv4/netfilter/ipt_time.c
Hunk #1 succeeded at 92 with fuzz 2 (offset -5 lines).

[..]
CC [M] net/ipv4/netfilter/ipt_time.o net/ipv4/netfilter/ipt_time.c: In function ___match___:
net/ipv4/netfilter/ipt_time.c:69: error: ___const struct sk_buff___ has no member named___stamp___
net/ipv4/netfilter/ipt_time.c: In function ___checkentry___:
net/ipv4/netfilter/ipt_time.c:113: error: ___matchsize___ undeclared (first use in this function) net/ipv4/netfilter/ipt_time.c:113: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_time.c:113: error: for each function it appears in.) net/ipv4/netfilter/ipt_time.c: At top level:
net/ipv4/netfilter/ipt_time.c:127: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:127: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:127: warning: initialization from incompatible poi nter type
make[4]: *** [net/ipv4/netfilter/ipt_time.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20.3'
make: *** [debian/stamp-build-kernel] Error 2

Signature · 9 lines
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+