summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/ChangeLog6
-rw-r--r--zebra/ipforward_sysctl.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index 82cc951b..9dd031cb 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-26 Miles Nordin <carton@Ivy.NET>
+
+ * ipforward_sysctl.c (mib_ipv6): Use size_t for len, per
+ sysctl(3), rather than int. (Needed on NetBSD/alpha to display
+ forwarding status correctly.)
+
2004-08-23 Paul Jakma <paul@dishone.st>
* zserv.c: (zebra_init) remove implicit ip forward enabling
diff --git a/zebra/ipforward_sysctl.c b/zebra/ipforward_sysctl.c
index 53b6c6f0..a8d0d8cb 100644
--- a/zebra/ipforward_sysctl.c
+++ b/zebra/ipforward_sysctl.c
@@ -44,7 +44,7 @@ int mib[MIB_SIZ] =
int
ipforward ()
{
- int len;
+ size_t len;
int ipforwarding = 0;
len = sizeof ipforwarding;
@@ -59,7 +59,7 @@ ipforward ()
int
ipforward_on ()
{
- int len;
+ size_t len;
int ipforwarding = 1;
len = sizeof ipforwarding;
@@ -80,7 +80,7 @@ ipforward_on ()
int
ipforward_off ()
{
- int len;
+ size_t len;
int ipforwarding = 0;
len = sizeof ipforwarding;
@@ -117,7 +117,7 @@ int mib_ipv6[MIB_SIZ] =
int
ipforward_ipv6 ()
{
- int len;
+ size_t len;
int ip6forwarding = 0;
len = sizeof ip6forwarding;
@@ -138,7 +138,7 @@ ipforward_ipv6 ()
int
ipforward_ipv6_on ()
{
- int len;
+ size_t len;
int ip6forwarding = 1;
len = sizeof ip6forwarding;
@@ -159,7 +159,7 @@ ipforward_ipv6_on ()
int
ipforward_ipv6_off ()
{
- int len;
+ size_t len;
int ip6forwarding = 0;
len = sizeof ip6forwarding;