From dfb6e62b2484660730e271f5568d1366bd439864 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Sun, 22 Oct 2023 09:58:44 -0400 Subject: add comments to point out interesting behavior --- pkg/ipstack/ipstack.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/ipstack/ipstack.go') 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()) -- cgit v1.2.3-70-g09d2