From 9261a0bec7a2988cf5a6cb9d93616836e223cdbb Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <daniel@dan-nrw.de>
Date: Thu, 17 May 2018 12:07:17 +0200
Subject: [PATCH] moved

---
 route/bgp.go | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/route/bgp.go b/route/bgp.go
index cde74bdd..0942770d 100644
--- a/route/bgp.go
+++ b/route/bgp.go
@@ -162,6 +162,15 @@ func (b *BGPPath) Prepend(asn uint32, times uint16) {
 	b.ASPathLen = b.ASPathLen + uint16(times)
 }
 
+func (p *BGPPath) Copy() *BGPPath {
+	if p == nil {
+		return nil
+	}
+
+	cp := *p
+	return &cp
+}
+
 func uint32To4Byte(addr uint32) [4]byte {
 	slice := convert.Uint32Byte(addr)
 	ret := [4]byte{
@@ -172,12 +181,3 @@ func uint32To4Byte(addr uint32) [4]byte {
 	}
 	return ret
 }
-
-func (p *BGPPath) Copy() *BGPPath {
-	if p == nil {
-		return nil
-	}
-
-	cp := *p
-	return &cp
-}
-- 
GitLab