diff options
author | t3sserakt <t3ss@posteo.de> | 2021-10-11 17:08:46 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-10-11 17:08:46 +0200 |
commit | d190d23831dae1a77075557f2ff6e0c713d747d5 (patch) | |
tree | 6b135d2081f3b1ebdef94f1b11f3ac48aaddeaaa /src/testing/topo.sh | |
parent | d7fa0579995790840199ec86cb4d518f9d372fcd (diff) | |
download | gnunet-d190d23831dae1a77075557f2ff6e0c713d747d5.tar.gz gnunet-d190d23831dae1a77075557f2ff6e0c713d747d5.zip |
fixed unset port forwarding variable bug in netjail script, fixed end cmd without shutdown bug, smaller fixes
Diffstat (limited to 'src/testing/topo.sh')
-rwxr-xr-x | src/testing/topo.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testing/topo.sh b/src/testing/topo.sh index 090c3053f..0046622b6 100755 --- a/src/testing/topo.sh +++ b/src/testing/topo.sh | |||
@@ -20,8 +20,7 @@ extract_attributes() | |||
20 | number=$(echo $line|cut -d \| -f 1| cut -c 2-|cut -d : -f 2 ) | 20 | number=$(echo $line|cut -d \| -f 1| cut -c 2-|cut -d : -f 2 ) |
21 | echo $number | 21 | echo $number |
22 | fi | 22 | fi |
23 | 23 | ||
24 | |||
25 | nf=$(echo $line|awk -F: '{print NF}') | 24 | nf=$(echo $line|awk -F: '{print NF}') |
26 | for ((i=2;i<=$nf;i++)) | 25 | for ((i=2;i<=$nf;i++)) |
27 | do | 26 | do |
@@ -67,6 +66,11 @@ while read line; do | |||
67 | then | 66 | then |
68 | GLOBAL_N=$(cut -d : -f 2 <<< $line) | 67 | GLOBAL_N=$(cut -d : -f 2 <<< $line) |
69 | echo $GLOBAL_N | 68 | echo $GLOBAL_N |
69 | for ((i=1;i<=$GLOBAL_N;i++)) | ||
70 | do | ||
71 | R_TCP[$i]=0 | ||
72 | R_UDP[$i]=0 | ||
73 | done | ||
70 | elif [ "$key" = "X" ] | 74 | elif [ "$key" = "X" ] |
71 | then | 75 | then |
72 | KNOWN=$(cut -d : -f 2 <<< $line) | 76 | KNOWN=$(cut -d : -f 2 <<< $line) |