diff options
author | David Doan <daviddoan@Davids-MacBook-Pro-70.local> | 2023-10-23 18:32:05 -0400 |
---|---|---|
committer | David Doan <daviddoan@Davids-MacBook-Pro-70.local> | 2023-10-23 18:32:05 -0400 |
commit | c4953632a5ce653301def74b19932c6d9703b174 (patch) | |
tree | a3999e2e5a568e27d3721432eeaa47e0a699a345 /cmd/vrouter/main.go | |
parent | b44583954cb762755e85d58da0a9527fa369c01e (diff) | |
parent | 1f926271bc80bcd6ff5ed52bb76a9ade347367b8 (diff) |
sectioning comments
Diffstat (limited to 'cmd/vrouter/main.go')
-rw-r--r-- | cmd/vrouter/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go index 0bc4d98..bc8cb2b 100644 --- a/cmd/vrouter/main.go +++ b/cmd/vrouter/main.go @@ -77,12 +77,12 @@ func main() { // get the longest prefix match for the destination address, _ := netip.ParseAddr(ipAddr) - hop, err := ipstack.LongestPrefix(address) + hop, err := ipstack.Route(address) if err != nil { fmt.Println(err) continue } - + myAddr := hop.Interface.IpPrefix.Addr() // attempt to send the message to the destination for _, neighbor := range ipstack.GetNeighbors()[hop.Interface.Name] { |