summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-09 04:54:29 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-09 04:54:29 -0800
commite92a04c9a880e81fdec116f837c5384cd79e0fcd (patch)
treee6e7e38e0d11ae53016f1112b44d7aeac0871cb0 /server/peer.go
parentb963b94fbf3479ce670f5ef1c499a11c8fef1e0f (diff)
server: use ID() for path's Filter and Filtered methods instead of TableID()
Needs to use ID() for path's Filter and Filtered methods instead of TableID(). We don't hit any bugs because: - With a RS client, both methods returns the same. - No IN POLICY support for non RS clients Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index 1844236e..f1f73580 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -214,7 +214,7 @@ func (peer *Peer) handleBGPmessage(e *FsmMsg) ([]*table.Path, []*bgp.BGPMessage)
peer.adjRibIn.Update(e.PathList)
paths := make([]*table.Path, 0, len(e.PathList))
for _, path := range e.PathList {
- if path.Filtered(peer.TableID()) != table.POLICY_DIRECTION_IN {
+ if path.Filtered(peer.ID()) != table.POLICY_DIRECTION_IN {
paths = append(paths, path)
}
}