Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added
- REPEAT setting in PingAll + some output cleanup
[#9](https://github.com/netsec-ethz/scion-java-multiping/pull/9)
[#9](https://github.com/netsec-ethz/scion-java-multiping/pull/9),
[#10](https://github.com/netsec-ethz/scion-java-multiping/pull/10)

### Changed

Expand Down
11 changes: 8 additions & 3 deletions src/main/java/org/scion/multiping/PingAll.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
*/
public class PingAll {
private static final int REPEAT = 3;
private static final boolean SHOW_ONLY_ICMP = !true;
private static final boolean SHOW_ONLY_ICMP = false;
private static final Config config = new Config();

static {
config.tryICMP = !false;
config.tryICMP = false;
if (SHOW_ONLY_ICMP) {
DELAYED_PRINT = true;
}
Expand Down Expand Up @@ -79,13 +79,18 @@ private enum Policy {
SHORTEST_ECHO
}

private static final Policy POLICY = Policy.FASTEST_TR; // SHORTEST_TR;
private static final Policy POLICY = Policy.SHORTEST_TR; // SHORTEST_TR;
private static final boolean SHOW_PATH = !true;

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

println("Settings:");
println(" Path policy = " + POLICY);
println(" ICMP=" + config.tryICMP);
println(" printOnlyICMP=" + SHOW_ONLY_ICMP);

PingAll demo = new PingAll();
List<ParseAssignments.HostEntry> list = DownloadAssignmentsFromWeb.getList();
for (ParseAssignments.HostEntry e : list) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/scion/multiping/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static void print(String msg) {

public static void println(String msg) {
print(msg);
println();
}

public static void println() {
Expand Down