aboutsummaryrefslogtreecommitdiff
path: root/cmd/example/main.go
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-09 06:00:08 +0000
committersotech117 <michael_foiani@brown.edu>2023-10-09 06:00:08 +0000
commit077d576becae10b35b84782d4070fbf2f5c0b7c8 (patch)
tree26a7f4c4f0219cf87ea70a004550bf2736a29321 /cmd/example/main.go
parent4966c054b3f462f6eaf24591c4ab1a945e72bb6f (diff)
good progress, fixing almost all of the red. in the process of ensuring the data structures are initialized correctly.
Diffstat (limited to 'cmd/example/main.go')
-rw-r--r--cmd/example/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/example/main.go b/cmd/example/main.go
index 5b6ae61..383e490 100644
--- a/cmd/example/main.go
+++ b/cmd/example/main.go
@@ -2,7 +2,7 @@ package main
import (
"fmt"
- "iptcp-jailpt2/pkg/lnxconfig"
+ "iptcp/pkg/lnxconfig"
"net/netip"
"os"
)
@@ -24,5 +24,8 @@ func main() {
for _, iface := range lnxConfig.Interfaces {
prefixForm := netip.PrefixFrom(iface.AssignedIP, iface.AssignedPrefix.Bits())
fmt.Printf("%s has IP %s\n", iface.Name, prefixForm.String())
+
+ fmt.Printf(iface.UDPAddr.String() + "\n")
+ fmt.Printf(iface.AssignedIP.String() + "\n")
}
}