Gentoo Archives: gentoo-commits

From: "Robert Piasek (dagger)" <dagger@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/connman/files: connman-0.57-fix-iptables-test.patch
Date: Fri, 20 Aug 2010 08:08:00
Message-Id: 20100820080753.9A47D2004C@flycatcher.gentoo.org
1 dagger 10/08/20 08:07:53
2
3 Added: connman-0.57-fix-iptables-test.patch
4 Log:
5 Added patch to fix compilation with iptables 1.4.9
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-misc/connman/files/connman-0.57-fix-iptables-test.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/connman/files/connman-0.57-fix-iptables-test.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/connman/files/connman-0.57-fix-iptables-test.patch?rev=1.1&content-type=text/plain
13
14 Index: connman-0.57-fix-iptables-test.patch
15 ===================================================================
16 From f9745d978e6797c4576b52f602325db02dc48403 Mon Sep 17 00:00:00 2001
17 From: Robert Piasek <dagger@g.o>
18 Date: Thu, 19 Aug 2010 16:33:59 +0100
19 Subject: [PATCH] fix iptables-test to work with iptables 1.4.9
20
21 Starting with version 1.4.9 iptables dropped xtables_set_revision
22 function. This patch removes any use of it.
23 ---
24 tools/iptables-test.c | 4 ++--
25 1 files changed, 2 insertions(+), 2 deletions(-)
26
27 diff --git a/tools/iptables-test.c b/tools/iptables-test.c
28 index 1f3235c..b97c520 100644
29 --- a/tools/iptables-test.c
30 +++ b/tools/iptables-test.c
31 @@ -110,7 +110,7 @@ static struct ipt_entry *build_quota_drop_entry(void)
32 return NULL;
33 m->m->u.match_size = match_size;
34 strcpy(m->m->u.user.name, m->name);
35 - xtables_set_revision(m->m->u.user.name, m->revision);
36 + m->m->u.user.revision = m->revision;
37 if (m->init != NULL)
38 m->init(m->m);
39
40 @@ -125,7 +125,7 @@ static struct ipt_entry *build_quota_drop_entry(void)
41 t->t = xtables_calloc(1, target_size);
42 t->t->u.target_size = target_size;
43 strcpy(t->t->u.user.name, "DROP");
44 - xtables_set_revision(t->t->u.user.name, t->revision);
45 + t->t->u.user.revision = t->revision;
46 if (t->init != NULL)
47 t->init(t->t);
48
49 --
50 1.7.2