summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-09 23:02:23 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-09 23:02:23 +0900
commitf8f2e44bbb2fcd376a72950b488fd12e09969802 (patch)
treed6884e0299d873fa13d825f1219a8b3ff405ccdd /packet/bgp.go
parentf3342c236eff5e5bc378fd320b538a0f02ac20e3 (diff)
packet: fix EVPN MAC/IP Advertisement Route parser
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r--packet/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index 5cd748e7..464ec018 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1290,7 +1290,7 @@ func (n *EVPNNLRI) DecodeFromBytes(data []byte) error {
return err
}
n.RouteTypeData = r
- return n.RouteTypeData.DecodeFromBytes(data)
+ return n.RouteTypeData.DecodeFromBytes(data[:n.Length])
}
func (n *EVPNNLRI) Serialize() ([]byte, error) {