simple usage Q on setting sysctl opts in fw script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i've a question about usage in setting SYSCTL options @ fw build/load time.

i've found numerous examples online used in/by iptables
scripts/generators/etc, and i see two different implementations.

e.g., for redirects, this,

	for f in /proc/sys/net/ipv4/conf/*/accept_redirects; do
	    echo 0 > $f
	done

versus,

	echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects

is _not_ "/all/" equivalent to a recurse across "/*/" in,

	% ls /proc/sys/net/ipv4/conf
		all      br0      default  lo       ppp0

?

i've yet to find a simple/clear statement as to the difference, if any.

thanks.


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux