summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/peer.go')
-rw-r--r--pkg/server/peer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go
index c213a9ea..a3f2be7b 100644
--- a/pkg/server/peer.go
+++ b/pkg/server/peer.go
@@ -481,7 +481,7 @@ func (peer *peer) handleUpdate(e *fsmMsg) ([]*table.Path, []bgp.RouteFamily, *bg
allowOwnAS := int(peer.fsm.pConf.AsPathOptions.Config.AllowOwnAs)
peer.fsm.lock.RUnlock()
if hasOwnASLoop(localAS, allowOwnAS, aspath) {
- path.SetAsLooped(true)
+ path.SetRejected(true)
continue
}
}
@@ -500,6 +500,7 @@ func (peer *peer) handleUpdate(e *fsmMsg) ([]*table.Path, []bgp.RouteFamily, *bg
"OriginatorID": id,
"Data": path,
}).Debug("Originator ID is mine, ignore")
+ path.SetRejected(true)
continue
}
}