diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-29 11:09:40 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-01 09:31:52 +0900 |
commit | 99336372ab2ae8a3b61af63abbcbd70223a1dfe1 (patch) | |
tree | 28d439e6d04884e78fb53279f8c3f43675743e49 /server | |
parent | b529f81ed7d8428200a3f5dcf99a57db9f9f769e (diff) |
packet/mrt: BGP Additional Path Extensions (RFC8050)
This patch enables to decode/encode MRT format with BGP Additional Path
Extensions which described in RFC8050.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server')
-rw-r--r-- | server/mrt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mrt.go b/server/mrt.go index 884f21ea..6c66745d 100644 --- a/server/mrt.go +++ b/server/mrt.go @@ -147,7 +147,7 @@ func (m *mrtWriter) loop() error { if path.IsLocal() { continue } - entries = append(entries, mrt.NewRibEntry(idx(path), uint32(path.GetTimestamp().Unix()), path.GetPathAttrs())) + entries = append(entries, mrt.NewRibEntry(idx(path), uint32(path.GetTimestamp().Unix()), 0, path.GetPathAttrs())) } if len(entries) > 0 { bm, _ := mrt.NewMRTMessage(t, mrt.TABLE_DUMPv2, subtype(pathList[0]), mrt.NewRib(seq, pathList[0].GetNlri(), entries)) |