Skip to content

Commit 0b8545f

Browse files
committed
Initial
1 parent 0a61f08 commit 0b8545f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ The tool uses a configuration file `EchoRepeatConfig.json` that can contain the
5151
"maxPathsPerDestination": 20,
5252
"tryICMP": false,
5353
"isdAsFile": "EchoRepeatDestinations-short.csv",
54-
"outputFile": "EchoOutput.csv"
54+
"outputFile": "EchoOutput.csv",
55+
"localPort": 30041,
56+
"consoleOutput": true
5557
}
5658
```
5759

src/main/java/org/scion/multiping/EchoRepeat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ public EchoRepeat(int localPort) {
6363
}
6464

6565
public static void main(String[] args) throws IOException {
66-
PRINT = true;
6766
System.setProperty(Constants.PROPERTY_DNS_SEARCH_DOMAINS, "ethz.ch.");
6867

6968
config = Config.read(FILE_CONFIG);
69+
PRINT = config.consoleOutput;
70+
7071
// Output: ISD/AS, remote IP, time, hopCount, path, [pings]
7172
fileWriter = new FileWriter(config.outputFile);
7273

src/main/java/org/scion/multiping/util/Config.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class Config {
2727
public String isdAsFile;
2828
public String outputFile;
2929
public int localPort = 30041;
30+
public boolean consoleOutput = true;
3031

3132
public static Config read(String path) {
3233
Gson gson = new Gson();

0 commit comments

Comments
 (0)