Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37661251
en ru br
ALT Linux repos
S:1.8.7-alt1
5.0: 1.4.0-alt4
4.1: 1.4.0-alt0.M41.1
4.0: 1.3.7-alt1
3.0: 1.3.1-alt2

Group :: System/Kernel and hardware
RPM: iptables

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: iptables-1.3.7-alt-warnings.patch
Download


diff -upk.orig iptables-1.3.7.orig/libiptc/libip4tc.c iptables-1.3.7/libiptc/libip4tc.c
--- iptables-1.3.7.orig/libiptc/libip4tc.c	2006-12-04 11:15:16 +0000
+++ iptables-1.3.7/libiptc/libip4tc.c	2006-12-09 15:59:29 +0000
@@ -125,7 +125,8 @@ typedef unsigned int socklen_t;
 
 #define IP_PARTS(n) IP_PARTS_NATIVE(ntohl(n))
 
-int
+#if 0
+static int
 dump_entry(STRUCT_ENTRY *e, const TC_HANDLE_T handle)
 {
 	size_t i;
@@ -174,6 +175,7 @@ dump_entry(STRUCT_ENTRY *e, const TC_HAN
 	printf("\n");
 	return 0;
 }
+#endif
 
 static unsigned char *
 is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b, unsigned char *matchmask)
diff -upk.orig iptables-1.3.7.orig/libiptc/libip6tc.c iptables-1.3.7/libiptc/libip6tc.c
--- iptables-1.3.7.orig/libiptc/libip6tc.c	2006-12-04 11:15:16 +0000
+++ iptables-1.3.7/libiptc/libip6tc.c	2006-12-09 15:59:29 +0000
@@ -130,6 +130,7 @@ ipv6_prefix_length(const struct in6_addr
 	return l;
 }
 
+#if 0
 static int
 dump_entry(struct ip6t_entry *e, const ip6tc_handle_t handle)
 {
@@ -204,6 +205,7 @@ dump_entry(struct ip6t_entry *e, const i
 	printf("\n");
 	return 0;
 }
+#endif
 
 static unsigned char *
 is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b,
diff -upk.orig iptables-1.3.7.orig/libiptc/libiptc.c iptables-1.3.7/libiptc/libiptc.c
--- iptables-1.3.7.orig/libiptc/libiptc.c	2006-12-04 11:15:16 +0000
+++ iptables-1.3.7/libiptc/libiptc.c	2006-12-09 15:59:29 +0000
@@ -908,7 +908,9 @@ print_match(const STRUCT_ENTRY_MATCH *m)
 	return 0;
 }
 
+#if 0
 static int dump_entry(STRUCT_ENTRY *e, const TC_HANDLE_T handle);
+#endif
  
 void
 TC_DUMP_ENTRIES(const TC_HANDLE_T handle)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin