summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-13 12:42:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-13 12:42:30 +0900
commit12ae1b784d400103623aca5554382e84d9843a28 (patch)
tree7ee602f7f40cc00cb3b8c9c04a77d4bd9499ffd5 /server/server.go
parent515abe28802b7062f3af080c0bd0187e2aa62280 (diff)
mrt: use on-wire original update data for mrt
bgpd parse on-wire original update data to construct BGPMessage object and serialize it. Sometimes the both data is not idential. For example, the original data sets the extended length for attribute even if the length is less than 256. This commit fixes the above issue. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 52d917ac..ecdbc8c2 100644
--- a/server/server.go
+++ b/server/server.go
@@ -801,6 +801,7 @@ func (server *BgpServer) handleFSMMessage(peer *Peer, e *FsmMsg, incoming chan *
localAddress: net.ParseIP(l),
fourBytesAs: y,
timestamp: e.timestamp,
+ payload: e.payload,
}
for _, ch := range listener {
bm := &broadcastWatcherMsg{