aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-22 09:58:44 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-22 09:58:44 -0400
commitdfb6e62b2484660730e271f5568d1366bd439864 (patch)
treefc815ad764460db50a78fdb92fc8f41258a7562f /pkg
parentd7c20268db996cd4a6599d85d0219a525dd43e6e (diff)
add comments to point out interesting behavior
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipstack/ipstack.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go
index 5160ab2..7a5c235 100644
--- a/pkg/ipstack/ipstack.go
+++ b/pkg/ipstack/ipstack.go
@@ -721,7 +721,9 @@ func handleRIP(src *Interface, dest *Neighbor, message []byte, hdr *ipv4header.I
continue
}
- fmt.Println(address)
+ // TODO: investigate this. should we be sharing local nodes too?
+ // potentially, may have to apply mask first
+ // fmt.Println(address)
prefix := netip.PrefixFrom(netip.MustParseAddr(address), int(entry.mask))
// fmt.Println(prefix.String())