Re: all vs. default in /proc/sys/net/ipv4/conf [message #3142 is a reply to message #3141] |
Mon, 15 May 2006 00:11   |
John Kelly
Messages: 97 Registered: May 2006 Location: Palmetto State
|
Member |
|
|
OK ...
I discovered in Documentation/networking/ip-sysctl.txt:
Quote: | rp_filter - BOOLEAN
1 - do source validation by reversed path, as specified in RFC1812
Recommended option for single homed hosts and stub network routers. Could cause troubles for complicated (not loop free)networks running a slow unreliable protocol (sort of RIP), or using static routes.
0 - No source validation.
conf/all/rp_filter must also be set to TRUE to do source validation on the interface
|
So "all" must be set, otherwise, it will not matter if the interface setting is true. Thus the "all" setting, for this sysctl, is an AND switch.
Quote: | send_redirects - BOOLEAN
Send redirects, if router.
send_redirects for the interface will be enabled if at least one of conf/{all,interface}/send_redirects is set to TRUE, it will be disabled otherwise
Default: TRUE
|
At least one of "all" or "interface" indicates the "all" setting, for this sysctl, is an OR switch.
So if I understand correctly, the "all" setting can be either an AND switch or an OR switch, depending on the specific sysctl.
|
|
|