]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: check for inverted ctdir
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 16 May 2013 01:02:11 +0000 (21:02 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 16 May 2013 01:02:11 +0000 (21:02 -0400)
commita6a04ea47a8143ba46150889d8dae1c861df6389
tree85085fb6f3bf364f6c864e0a99ef3ab869c97fc5
parentcc7cd6232ebfbf1a0e4edd51d9f5ca43a73eda10
nwfilter: check for inverted ctdir

Linux netfilter at some point (Linux 2.6.39) inverted the meaning of the
'--ctdir reply' and newer netfilter implementations now expect
'--ctdir original' instead and vice-versa.
We check for the kernel version and assume that all Linux kernels with version
2.6.39 have the newer inverted logic.

Any distro backporting the Linux kernel patch that inverts the --ctdir logic
(Linux commit 96120d86f) must also backport this patch for Linux and
adapt the kernel version being tested for.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/nwfilter/nwfilter_ebiptables_driver.c