aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-09 18:07:54 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-09 18:07:54 -0400
commit1fbd2a1dbb09b75afbb1435be46670ee61942bcf (patch)
tree259e32d9799b9d7109dd8927e6bcfa9fc1383624 /pkg
parent3932d9b5135c0f1831ed2cb714083559a251ff20 (diff)
small changes
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipstack/ipstack.go2
-rw-r--r--pkg/ipstack/ipstack_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go
index 2063c67..91cc6f9 100644
--- a/pkg/ipstack/ipstack.go
+++ b/pkg/ipstack/ipstack.go
@@ -294,7 +294,7 @@ func CleanUp() {
// delete all the neighbors
myNeighbors = make(map[string][]*Neighbor)
- // delete tall the interfaces
+ // delete all the interfaces
myInterfaces = nil
// delete the routing table
routingTable = make(map[netip.Prefix]Hop)
diff --git a/pkg/ipstack/ipstack_test.go b/pkg/ipstack/ipstack_test.go
index c6103ee..941c4e9 100644
--- a/pkg/ipstack/ipstack_test.go
+++ b/pkg/ipstack/ipstack_test.go
@@ -185,7 +185,7 @@ func TestSendIPToNeighbor(t *testing.T) {
// send a message to the neighbor
fmt.Printf("sending message to neighbor\t%t\n", sent)
- err = SendIP(*iface, *testNeighbor, 0, []byte("hello"))
+ err = SendIP(*iface, *testNeighbor, 0, []byte("You are my firest neighbor!"))
if err != nil {
t.Error(err)
}