summaryrefslogtreecommitdiffhomepage
path: root/server/mrt.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/mrt.go')
-rw-r--r--server/mrt.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/mrt.go b/server/mrt.go
index fe61f7a1..613f0b07 100644
--- a/server/mrt.go
+++ b/server/mrt.go
@@ -88,6 +88,9 @@ func (m *mrtWriter) loop() error {
msg := make([]*mrt.MRTMessage, 0, 1)
switch e := ev.(type) {
case *WatchEventUpdate:
+ if e.Init {
+ return nil
+ }
mp := mrt.NewBGP4MPMessage(e.PeerAS, e.LocalAS, 0, e.PeerAddress.String(), e.LocalAddress.String(), e.FourBytesAs, nil)
mp.BGPMessagePayload = e.Payload
isAddPath := e.Neighbor.IsAddPathReceiveEnabled(e.PathList[0].GetRouteFamily())