diff options
-rw-r--r-- | packet/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 6f541037..bd9cefa6 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -771,7 +771,7 @@ type RouteDistinguisherIPAddressAS struct { func (rd *RouteDistinguisherIPAddressAS) Serialize() ([]byte, error) { buf := make([]byte, 6) - copy(buf[0:], rd.Value.Admin) + copy(buf[0:], rd.Value.Admin.To4()) binary.BigEndian.PutUint16(buf[4:], rd.Value.Assigned) rd.DefaultRouteDistinguisher.Value = buf return rd.DefaultRouteDistinguisher.Serialize() |