Mailing List Archive

match time & kernel 2.6.22.5
Hi all,

I want to add the match time.
I apply the last snapshot with this patch ( patch-o-matic-ng-20060702)

The compilation stop after with this errors:

make modules
.../...
...
net/ipv4/netfilter/ipt_time.c: In function 'match':
net/ipv4/netfilter/ipt_time.c:60: error: 'ktime_t' has no member named
'off_sec'
net/ipv4/netfilter/ipt_time.c:64: error: 'ktime_t' has no member named
'off_sec'
net/ipv4/netfilter/ipt_time.c:64: error: 'ktime_t' has no member named
'off_sec'
net/ipv4/netfilter/ipt_time.c:68: error: 'ktime_t' has no member named
'off_sec'
net/ipv4/netfilter/ipt_time.c: At top level:
net/ipv4/netfilter/ipt_time.c:116: warning: initialization from incompatible
pointer type
net/ipv4/netfilter/ipt_time.c:117: warning: initialization from incompatible
pointer type
net/ipv4/netfilter/ipt_time.c: In function 'init':
net/ipv4/netfilter/ipt_time.c:124: warning: implicit declaration of function
'ipt_register_match'
net/ipv4/netfilter/ipt_time.c: In function 'fini':
net/ipv4/netfilter/ipt_time.c:129: warning: implicit declaration of function
'ipt_unregister_match'
make[3]: *** [net/ipv4/netfilter/ipt_time.o] Error 1


This kernel is linux-2.6.22.5.
This the same with kernel source for FC6.

Where is the mistake ?

Thanks for help--
Famille Matton
Moreremanslaan, 48C
B-1700 Dilbeek
Re: match time & kernel 2.6.22.5 [ In reply to ]
> I want to add the match time.
> I apply the last snapshot with this patch ( patch-o-matic-ng-20060702)
>
> The compilation stop after with this errors:

Are you really using patch-o-matic-ng-20060702 ? That's more than a year
old. I just finished building kernel 2.6.22 with the time match using
pom-ng-20070826, and it worked fine.

Try using the latest snapshot of pom-ng. You'll have to tell it to download
the time patch; see 'perldoc runme' for details.

Good luck,
Andrew.
Re: match time & kernel 2.6.22.5 [ In reply to ]
Hi Andrew,
Thank for our help,
now the new kerl is build with iptables time match.
This is the first time I add match for iptables and this procedrue is not
described on netfilter extra docs

Selon Andrew Schulman <andrex@alumni.utexas.net>:

> > I want to add the match time.
> > I apply the last snapshot with this patch ( patch-o-matic-ng-20060702)
> >
> > The compilation stop after with this errors:
>
> Are you really using patch-o-matic-ng-20060702 ? That's more than a year
> old. I just finished building kernel 2.6.22 with the time match using
> pom-ng-20070826, and it worked fine.
>
> Try using the latest snapshot of pom-ng. You'll have to tell it to download
> the time patch; see 'perldoc runme' for details.
>
> Good luck,
> Andrew.
>
>
>


--
Famille Matton
Moreremanslaan, 48C
B-1700 Dilbeek