patch gb641e7f
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/conntrack-tools?expand=0&rev=22
This commit is contained in:
parent
7d682cbc0e
commit
f9ee5c8eb4
40
b641e7f-nfct_timeout-api.diff
Normal file
40
b641e7f-nfct_timeout-api.diff
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
parent 318756cd4df1cb7760bf32d3e1d3756c41d1858b (conntrack-tools-1.2.0)
|
||||||
|
commit b641e7fe34095d3b3f925685835f907e57b3c2c6
|
||||||
|
Author: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: Sat May 26 20:57:48 2012 +0200
|
||||||
|
|
||||||
|
nfct-extensions/timeout: adjust for changed nfct_timeout_snprintf API
|
||||||
|
|
||||||
|
Despite requiring libnetfilter_cttimeout >= 1.0.0, it did not
|
||||||
|
use the new API.
|
||||||
|
|
||||||
|
nfct-extensions/timeout.c: In function 'nfct_timeout_cb':
|
||||||
|
nfct-extensions/timeout.c:99:2: error: too few arguments to function
|
||||||
|
'nfct_timeout_snprintf'
|
||||||
|
In file included from nfct-extensions/timeout.c:26:0:
|
||||||
|
/usr/include/libnetfilter_cttimeout-1.0.0/libnetfilter_cttimeout/
|
||||||
|
libnetfilter_cttimeout.h:114:5: note: declared here
|
||||||
|
|
||||||
|
114: int nfct_timeout_snprintf(char *buf, size_t size,
|
||||||
|
const struct nfct_timeout *, unsigned int type, unsigned int flags);
|
||||||
|
|
||||||
|
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
---
|
||||||
|
src/nfct-extensions/timeout.c | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/nfct-extensions/timeout.c b/src/nfct-extensions/timeout.c
|
||||||
|
index a1a5c52..5b32023 100644
|
||||||
|
--- a/src/nfct-extensions/timeout.c
|
||||||
|
+++ b/src/nfct-extensions/timeout.c
|
||||||
|
@@ -96,7 +96,7 @@ static int nfct_timeout_cb(const struct nlmsghdr *nlh, void *data)
|
||||||
|
goto err_free;
|
||||||
|
}
|
||||||
|
|
||||||
|
- nfct_timeout_snprintf(buf, sizeof(buf), t, 0);
|
||||||
|
+ nfct_timeout_snprintf(buf, sizeof(buf), t, NFCT_TIMEOUT_O_DEFAULT, 0);
|
||||||
|
printf("%s\n", buf);
|
||||||
|
|
||||||
|
err_free:
|
||||||
|
--
|
||||||
|
# Created with git-export-patch
|
@ -24,9 +24,10 @@ Url: http://conntrack-tools.netfilter.org/
|
|||||||
#Git-Clone: git://git.netfilter.org/conntrack-tools
|
#Git-Clone: git://git.netfilter.org/conntrack-tools
|
||||||
Source: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2
|
Source: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2
|
||||||
Source2: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2.sig
|
Source2: http://netfilter.org/projects/conntrack-tools/files/%name-%version.tar.bz2.sig
|
||||||
|
Patch1: b641e7f-nfct_timeout-api.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex >= 2.5.33
|
||||||
BuildRequires: pkgconfig >= 0.21
|
BuildRequires: pkgconfig >= 0.21
|
||||||
BuildRequires: pkgconfig(libmnl) >= 1.0.0
|
BuildRequires: pkgconfig(libmnl) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.1
|
BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.1
|
||||||
@ -49,6 +50,7 @@ collector as well.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -P 1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -62,7 +64,7 @@ make %{?_smp_mflags}
|
|||||||
%doc AUTHORS TODO doc/stats/conntrackd.conf
|
%doc AUTHORS TODO doc/stats/conntrackd.conf
|
||||||
%_sbindir/conntrack
|
%_sbindir/conntrack
|
||||||
%_sbindir/conntrackd
|
%_sbindir/conntrackd
|
||||||
%_mandir/man8/conntrack.8.gz
|
%_sbindir/nfct
|
||||||
%_mandir/man8/conntrackd.8.gz
|
%_mandir/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user