From 70067291528bb949fac8a584e782f2b4c38e4c16 Mon Sep 17 00:00:00 2001 From: Phil Oester Date: Wed, 5 Jul 2006 09:31:45 +0000 Subject: libiptc symbols clash (Phil Oester ) As reported by Dmitry Levin, the TC_NUM_RULES and TC_GET_RULE exports clash. His patch below, resolving bug #456 --- libiptc/libip4tc.c | 2 ++ libiptc/libip6tc.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index 2e8647cd..a0cdc2f8 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -94,6 +94,8 @@ typedef unsigned int socklen_t; #define TC_FREE iptc_free #define TC_COMMIT iptc_commit #define TC_STRERROR iptc_strerror +#define TC_NUM_RULES iptc_num_rules +#define TC_GET_RULE iptc_get_rule #define TC_AF AF_INET #define TC_IPPROTO IPPROTO_IP diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c index 8ca5ea66..5b3ae0bf 100644 --- a/libiptc/libip6tc.c +++ b/libiptc/libip6tc.c @@ -89,6 +89,8 @@ typedef unsigned int socklen_t; #define TC_FREE ip6tc_free #define TC_COMMIT ip6tc_commit #define TC_STRERROR ip6tc_strerror +#define TC_NUM_RULES ip6tc_num_rules +#define TC_GET_RULE ip6tc_get_rule #define TC_AF AF_INET6 #define TC_IPPROTO IPPROTO_IPV6 -- cgit v1.2.3