Ronny
bad code fragment in my first message due to cut and paste :-(
arp_table_adjust()
{
. /etc/network/options
echo "adjusting arp table values..."
echo "adjusting the arp entry stale time..."
[ X$gc_stale_time != "X" ] && for i in `find /proc/sys/net/ipv4/neigh/ -name
gc_stale_time | grep -v "/lo"`
do
echo $gc_stale_time > $i
done
[ X$default_gc_stale_time != "X" ] && echo $default_gc_stale_time >
/proc/sys/net/ipv4/neigh/default/gc_stale_time
echo "adjusting the garbage collector interval"
[ X$gc_interval != "X" ] && echo $gc_interval >
/proc/sys/net/ipv4/neigh/default/gc_interval
echo "adjusting the arp table thresholds"
[ X$gc_thresh1 != "X" ] && echo $gc_thresh1 >
/proc/sys/net/ipv4/neigh/default/gc_thresh1
[ X$gc_thresh2 != "X" ] && echo $gc_thresh2 >
/proc/sys/net/ipv4/neigh/default/gc_thresh2
[ X$gc_thresh3 != "X" ] && echo $gc_thresh3 >
/proc/sys/net/ipv4/neigh/default/gc_thresh3
echo "done..."
}
Erich
THINK
P�ntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html