diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-11 15:42:18 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-14 02:15:46 +0000 |
commit | c4ced97e76f12d5c37721c107e61147edb4254d7 (patch) | |
tree | 8178a6a4a7bfbdf98414dd0148796255e39a4cc0 /server/rpki.go | |
parent | 3f2dd34d37b5ca4874399d7eaff9bbb8b7975cd4 (diff) |
cli: use client library
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/rpki.go')
-rw-r--r-- | server/rpki.go | 4 |
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 |