Skip to contentSkip to conversation

nf-log patch fail to apply on 2.4.31 : solution

DISCUSSION Gilles Espinasse 1 participant 1 message Jul 23, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I try with pach-o-matic-20050716 and the last one available 20050722 on a 2.4.31 kernel without any other patches.

When used with
./runme --kernel-path=../linux-2.4.31 --iptables-path=../iptables-1.2.11/
pending
- everything until nf-log apply without problem
- with nf-log, test work but patch fail related to netfilter_logging.h

Quoted 12 lines

The functionality relies on the available "backend" logging modules (ipt_LOG or ipt_ULOG). At least one of the logging modules must be loaded in, otherwise no log will be generated. If both modules are available in the kernel, then the firstly registered (loaded) will handle the logging.
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] t Patch nf-log applies cleanly
-----------------------------------------------------------------
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y ERROR (1 rejects out of 23 hunks)

manually applying the patch inside linux directory work
patch -Np1 < ../patch-o-matic-ng-20050716/patchlets/nf-log/linux-2.4.patch

Reason of failure is because netfilter_logging.h is present as a file under patchlets/nf-log/include/linux-2.4/netfilter_logging.h and inside linux-2.4.patch
Remove one on the 2 occurences and it work.
I remove patchlets/nf-log/linux-2.4/include/linux/netfilter_logging.h because it was the easiest for me.

Next ownercmd (now include in pending but not in my old 20040621 version) fail to apply, I remove it too

Gilles