From 592a1f0d050147769ce0cb1d0d235150fbd5d8db Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 10:12:35 -0400 Subject: small bug fixing --- pkg/ipstack/ipstack.go | 6 +++--- r3h2/binaries.example.json | 17 +++++++++++++++++ r3h2/nodes.json | 7 +++++++ vhost | Bin 3095810 -> 3104661 bytes vrouter | Bin 3095810 -> 3104653 bytes 5 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 r3h2/binaries.example.json create mode 100644 r3h2/nodes.json 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 Binary files a/vhost and b/vhost differ diff --git a/vrouter b/vrouter index 8f8c956..14e6c0c 100755 Binary files a/vrouter and b/vrouter differ -- cgit v1.2.3-70-g09d2