diff options
Diffstat (limited to 'trunk/TAO/performance-tests/Protocols/show_lksctp_params.sh')
-rwxr-xr-x | trunk/TAO/performance-tests/Protocols/show_lksctp_params.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/trunk/TAO/performance-tests/Protocols/show_lksctp_params.sh b/trunk/TAO/performance-tests/Protocols/show_lksctp_params.sh new file mode 100755 index 00000000000..89cf1e2a5c6 --- /dev/null +++ b/trunk/TAO/performance-tests/Protocols/show_lksctp_params.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +max_len=24 +pushd /proc/sys/net/sctp &> /dev/null +echo "SCTP Parameters" +for i in `ls *`; do + ct=0 + tmp_len=`echo ${i} | wc -m` + let "tmp_len=tmp_len-1" + let "spaces=${max_len}-${tmp_len}" + echo -n " $i:" + while [ ${ct} -lt ${spaces} ]; do + echo -n " " + let "ct=${ct}+1" + done + cat $i +done +echo |