diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-23 10:12:35 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-23 10:12:35 -0400 |
commit | 592a1f0d050147769ce0cb1d0d235150fbd5d8db (patch) | |
tree | 6946fe733e75981dc8679afac41767f4de60baa7 | |
parent | 2809c966d60a562525ca11d87c208531fba96649 (diff) |
small bug fixing
-rw-r--r-- | pkg/ipstack/ipstack.go | 6 | ||||
-rw-r--r-- | r3h2/binaries.example.json | 17 | ||||
-rw-r--r-- | r3h2/nodes.json | 7 | ||||
-rwxr-xr-x | vhost | bin | 3095810 -> 3104661 bytes | |||
-rwxr-xr-x | vrouter | bin | 3095810 -> 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 Binary files differBinary files differ |