Re: sysctl() considered harmful

Andi Kleen (ak@muc.de)
06 Jan 1998 02:24:28 +0100


Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

> No effort has been taking to give those sysctls which lost their
> meaning during 2.1 some reasonable implementation. Most notably,
> NET_IPV4_FORWARD can probably implemented on top of
> NET_IPV4_FORWARDING. One exception: NET_IPV4_DYNADDR is apparently
> the same as NET_IPV4_IP_DYNADDR.

The difference between NET_IPV4_FORWARD and NET_IPV4_FORWARDING
is that _FORWARD is a simple boolean (0 off, != 0 on), while
_FORWARDING uses the numeric values from the IP MIB (1 == off,
2 == on). The reason for this is that _FORWARD was only a cheap
hack that was never intended for an official release.

-A.