summaryrefslogtreecommitdiff
path: root/package/iptables-snmp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-11-13 23:35:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-11-13 23:35:41 +0100
commit05e92cbeda75035f1c127510679b9d0eb6e1946a (patch)
treee5a36c5c7dfb3461f4ad19092d3da10dc1e28326 /package/iptables-snmp
parent7a126246d2a5bfbfdef61691d814846b70ae3082 (diff)
simplify net-snmp package, update to latest upstream
- fix iptables-snmp package (reported by joerg) - simplify and update net-snmp
Diffstat (limited to 'package/iptables-snmp')
-rw-r--r--package/iptables-snmp/Config.in2
-rw-r--r--package/iptables-snmp/patches/patch-libiptc_libip6tc_c11
2 files changed, 12 insertions, 1 deletions
diff --git a/package/iptables-snmp/Config.in b/package/iptables-snmp/Config.in
index 80a49552b..799c1506e 100644
--- a/package/iptables-snmp/Config.in
+++ b/package/iptables-snmp/Config.in
@@ -1,7 +1,7 @@
config ADK_PACKAGE_IPTABLES_SNMP
prompt "export iptables information via snmp"
tristate
- default ADK_PACKAGE_IPTABLES
+ select ADK_PACKAGE_IPTABLES
depends on ADK_PACKAGE_SNMPD
help
This is a library for the netkit snmp daemon, allowing it to export
diff --git a/package/iptables-snmp/patches/patch-libiptc_libip6tc_c b/package/iptables-snmp/patches/patch-libiptc_libip6tc_c
new file mode 100644
index 000000000..68ae9cf7f
--- /dev/null
+++ b/package/iptables-snmp/patches/patch-libiptc_libip6tc_c
@@ -0,0 +1,11 @@
+--- iptables-snmp-0.1.orig/libiptc/libip6tc.c 2005-07-05 00:11:28.000000000 +0200
++++ iptables-snmp-0.1/libiptc/libip6tc.c 2009-11-13 23:18:45.195701184 +0100
+@@ -111,7 +111,7 @@ typedef unsigned int socklen_t;
+ #include "libiptc.c"
+
+ #define BIT6(a, l) \
+- ((ntohl(a->in6_u.u6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
++ ((ntohl(a->s6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
+
+ int
+ ipv6_prefix_length(const struct in6_addr *a)