summaryrefslogtreecommitdiffhomepage
path: root/server/rpki.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/rpki.go')
-rw-r--r--server/rpki.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/rpki.go b/server/rpki.go
index df105a65..cbef5dee 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -42,6 +42,10 @@ type ipPrefix struct {
Length uint8
}
+func (p *ipPrefix) String() string {
+ return fmt.Sprintf("%s/%d", p.Prefix, p.Length)
+}
+
type roaBucket struct {
Prefix *ipPrefix
entries []*ROA