* Kernel 2.6.2 and "string" match patch (pom-ng)
@ 2004-02-10 0:38 Leszek Zur
2004-02-11 7:39 ` Henrik Nordstrom
2004-02-14 21:00 ` mqe
0 siblings, 2 replies; 3+ messages in thread
From: Leszek Zur @ 2004-02-10 0:38 UTC (permalink / raw)
To: netfilter-devel
I can not get the string match patch to compile under 2.6.2
wget
ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/patch-o-matic-ng-20040207.tar.bz2
bzip2 -dc patch-o-matic-ng-20040207.tar.bz2 | tar xf -
cd patch-o-matic-ng-20040207
./runme string
...
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y
unable to find ladd slot in src ./net/ipv4/netfilter/Makefile
In
patch-o-matic-ng-20040207/string/linux/net/ipv4/netfilter/Makefile.ladd
obj-$(CONFIG_IP_NF_MATCH_UNCLEAN) += ipt_unclean.o
obj-$(CONFIG_IP_NF_MATCH_STRING) += ipt_string.o
But IP_NF_MATCH_UNCLEAN is not defined
When i change in patch-o-matic-ng-20040207/string/*
'UNCLEAN' to 'TOS'
'unclean' to 'tos'
./runme string
its ok.
cd /usr/src/linux
make bzImage
...
CC net/ipv4/netfilter/ipt_tos.o
CC net/ipv4/netfilter/ipt_string.o
net/ipv4/netfilter/ipt_string.c: In function `search_sublinear':
net/ipv4/netfilter/ipt_string.c:55: warning: subscript has type `char'
net/ipv4/netfilter/ipt_string.c:80: warning: subscript has type `char'
net/ipv4/netfilter/ipt_string.c: In function `string_freeup_data':
net/ipv4/netfilter/ipt_string.c:166: `smp_num_cpus' undeclared (first
use in this function)
net/ipv4/netfilter/ipt_string.c:166: (Each undeclared identifier is
reported only once
net/ipv4/netfilter/ipt_string.c:166: for each function it appears in.)
net/ipv4/netfilter/ipt_string.c: At top level:
net/ipv4/netfilter/ipt_string.c:176: warning: initialization from
incompatible pointer type
net/ipv4/netfilter/ipt_string.c: In function `init':
net/ipv4/netfilter/ipt_string.c:184: `smp_num_cpus' undeclared (first
use in this function)
make[3]: *** [net/ipv4/netfilter/ipt_string.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
has anybody been using the string match from the patch-o-matic-ng
with kernel 2.6.x yet?
Leszek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel 2.6.2 and "string" match patch (pom-ng)
2004-02-10 0:38 Kernel 2.6.2 and "string" match patch (pom-ng) Leszek Zur
@ 2004-02-11 7:39 ` Henrik Nordstrom
2004-02-14 21:00 ` mqe
1 sibling, 0 replies; 3+ messages in thread
From: Henrik Nordstrom @ 2004-02-11 7:39 UTC (permalink / raw)
To: Leszek Zur; +Cc: netfilter-devel
On Tue, 10 Feb 2004, Leszek Zur wrote:
> I can not get the string match patch to compile under 2.6.2
This was discussed just some days ago. See the archives.
Regards
Henrik
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel 2.6.2 and "string" match patch (pom-ng)
2004-02-10 0:38 Kernel 2.6.2 and "string" match patch (pom-ng) Leszek Zur
2004-02-11 7:39 ` Henrik Nordstrom
@ 2004-02-14 21:00 ` mqe
1 sibling, 0 replies; 3+ messages in thread
From: mqe @ 2004-02-14 21:00 UTC (permalink / raw)
To: Leszek Zur; +Cc: netfilter-devel
To be honest, i have not checked what is going on with that smp_num_cpus.
It has moved / changed name or something like that. Anyhow, i modified
ipt_string.c just to fit my machine. smp_num_cpus is number of processors,
so I just changed it to "1". Though, this is not product environment - i
will look that more as soon as i have time.
> make bzImage
> ...
> CC net/ipv4/netfilter/ipt_tos.o
> CC net/ipv4/netfilter/ipt_string.o
> net/ipv4/netfilter/ipt_string.c: In function `search_sublinear':
> net/ipv4/netfilter/ipt_string.c:55: warning: subscript has type `char'
> net/ipv4/netfilter/ipt_string.c:80: warning: subscript has type `char'
> net/ipv4/netfilter/ipt_string.c: In function `string_freeup_data':
> net/ipv4/netfilter/ipt_string.c:166: `smp_num_cpus' undeclared (first
> use in this function)
> net/ipv4/netfilter/ipt_string.c:166: (Each undeclared identifier is
> reported only once
> net/ipv4/netfilter/ipt_string.c:166: for each function it appears in.)
> net/ipv4/netfilter/ipt_string.c: At top level:
> net/ipv4/netfilter/ipt_string.c:176: warning: initialization from
> incompatible pointer type
> net/ipv4/netfilter/ipt_string.c: In function `init':
> net/ipv4/netfilter/ipt_string.c:184: `smp_num_cpus' undeclared (first
> use in this function)
> make[3]: *** [net/ipv4/netfilter/ipt_string.o] Error 1
> make[2]: *** [net/ipv4/netfilter] Error 2
> make[1]: *** [net/ipv4] Error 2
> make: *** [net] Error 2
>
>
> has anybody been using the string match from the patch-o-matic-ng
> with kernel 2.6.x yet?
>
> Leszek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-14 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 0:38 Kernel 2.6.2 and "string" match patch (pom-ng) Leszek Zur
2004-02-11 7:39 ` Henrik Nordstrom
2004-02-14 21:00 ` mqe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.