summaryrefslogtreecommitdiff
path: root/zebra/ipforward_sysctl.c
diff options
context:
space:
mode:
authorgdt <gdt>2004-08-26 13:24:00 +0000
committergdt <gdt>2004-08-26 13:24:00 +0000
commita5ea687e0128b64d7c2b795d7fcb533ed5fd68e6 (patch)
treeb3c9af0ad16a4e6927330afefa255efa4013ce40 /zebra/ipforward_sysctl.c
parente304982e498e58ca77e8c7dd8f1bf83f1e50ca27 (diff)
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.)
Diffstat (limited to 'zebra/ipforward_sysctl.c')
-rw-r--r--zebra/ipforward_sysctl.c12
1 files changed, 6 insertions, 6 deletions
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;