Skip to content
Snippets Groups Projects
Commit 9261a0be authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

moved

parent 62d6d0c8
Branches
Tags
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment