aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-23 10:12:35 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-23 10:12:35 -0400
commit592a1f0d050147769ce0cb1d0d235150fbd5d8db (patch)
tree6946fe733e75981dc8679afac41767f4de60baa7
parent2809c966d60a562525ca11d87c208531fba96649 (diff)
small bug fixing
-rw-r--r--pkg/ipstack/ipstack.go6
-rw-r--r--r3h2/binaries.example.json17
-rw-r--r--r3h2/nodes.json7
-rwxr-xr-xvhostbin3095810 -> 3104661 bytes
-rwxr-xr-xvrouterbin3095810 -> 3104653 bytes
5 files changed, 27 insertions, 3 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go
index 59afbcd..8a451f8 100644
--- a/pkg/ipstack/ipstack.go
+++ b/pkg/ipstack/ipstack.go
@@ -186,9 +186,9 @@ func InterfaceListenerRoutine(i *Interface) {
if closed { // stop this go routine if channel is closed
return
}
- if !isUp { // don't call the listeners if interface is down
- continue
- }
+ //if !isUp { // don't call the listeners if interface is down
+ // continue
+ //}
// TODO: remove these "training wheels"
time.Sleep(1 * time.Millisecond)
err := RecvIP(i, &isUp)
diff --git a/r3h2/binaries.example.json b/r3h2/binaries.example.json
new file mode 100644
index 0000000..9079242
--- /dev/null
+++ b/r3h2/binaries.example.json
@@ -0,0 +1,17 @@
+{
+ "h1": {
+ "binary_path": "./vhost"
+ },
+ "h2": {
+ "binary_path": "./vhost"
+ },
+ "r1": {
+ "binary_path": "./vrouter"
+ },
+ "r2": {
+ "binary_path": "./vrouter"
+ },
+ "r3": {
+ "binary_path": "./vrouter"
+ }
+} \ No newline at end of file
diff --git a/r3h2/nodes.json b/r3h2/nodes.json
new file mode 100644
index 0000000..27ea8c5
--- /dev/null
+++ b/r3h2/nodes.json
@@ -0,0 +1,7 @@
+{
+ "h1": "host",
+ "h2": "host",
+ "r1": "router",
+ "r2": "router",
+ "r3": "router"
+} \ No newline at end of file
diff --git a/vhost b/vhost
index 8df4716..53dc4bc 100755
--- a/vhost
+++ b/vhost
Binary files differ
diff --git a/vrouter b/vrouter
index 8f8c956..14e6c0c 100755
--- a/vrouter
+++ b/vrouter
Binary files differ