summaryrefslogtreecommitdiffhomepage
path: root/packet
diff options
context:
space:
mode:
Diffstat (limited to 'packet')
-rw-r--r--packet/mrt/mrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/mrt/mrt.go b/packet/mrt/mrt.go
index 041a2802..8947648a 100644
--- a/packet/mrt/mrt.go
+++ b/packet/mrt/mrt.go
@@ -465,7 +465,7 @@ func (u *Rib) Serialize() ([]byte, error) {
switch rf {
case bgp.RF_IPv4_UC, bgp.RF_IPv4_MC, bgp.RF_IPv6_UC, bgp.RF_IPv6_MC:
default:
- bbuf := make([]byte, 0, 2)
+ bbuf := make([]byte, 2)
binary.BigEndian.PutUint16(bbuf, u.Prefix.AFI())
buf = append(buf, bbuf...)
buf = append(buf, u.Prefix.SAFI())