diff --git a/prefixfile/prefixfile.go b/prefixfile/prefixfile.go index 952e0d7..e6cb307 100644 --- a/prefixfile/prefixfile.go +++ b/prefixfile/prefixfile.go @@ -110,6 +110,10 @@ func (roa *ROAJson) GetPrefix() *net.IPNet { return prefix } +func (roa *ROAJson) GetMaxLen() int { + return int(roa.Length) +} + func (roa *ROAJson) String() string { return fmt.Sprintf("%v/%v/%v", roa.Prefix, roa.Length, roa.ASN) }