diff options
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 505212b4..ae222a34 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -469,6 +469,10 @@ func (r *IPAddrPrefixDefault) Len() int { return int(1 + ((r.Length + 7) / 8)) } +func (r *IPAddrPrefixDefault) String() string { + return fmt.Sprintf("%s/%d", r.Prefix.String(), r.Length) +} + type IPAddrPrefix struct { IPAddrPrefixDefault addrlen uint8 |