summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-08 21:31:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-12 08:04:30 +0900
commit3cd37dc88f178776efadac622546d9ee738225d8 (patch)
tree80a358da6a26118f42b3590c885a5ff7366ca126 /packet/bgp.go
parentfab88599e394f61a34bc732280b3e4a418a4379d (diff)
bgp: remove unused methods
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r--packet/bgp.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index bbe55742..c3f43bdb 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1109,25 +1109,6 @@ func (r *LabeledIPAddrPrefix) SAFI() uint8 {
return SAFI_MPLS_LABEL
}
-func (r *IPAddrPrefix) decodeNextHop(data []byte) net.IP {
- if r.addrlen == 0 {
- r.addrlen = 4
- }
- var next net.IP = data[0:r.addrlen]
- return next
-}
-
-func (r *LabeledVPNIPAddrPrefix) decodeNextHop(data []byte) net.IP {
- // skip rd
- var next net.IP = data[8 : 8+r.addrlen]
- return next
-}
-
-func (r *LabeledIPAddrPrefix) decodeNextHop(data []byte) net.IP {
- var next net.IP = data[0:r.addrlen]
- return next
-}
-
func (l *LabeledIPAddrPrefix) DecodeFromBytes(data []byte) error {
l.Length = uint8(data[0])
data = data[1:]