summaryrefslogtreecommitdiffhomepage
path: root/table/adj.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2017-02-13 06:07:03 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-02-15 00:03:57 +0900
commitf276279bf6d90b3f5940bc63780cc3483e9d734e (patch)
tree99d210af71f53b8afb80e8d006873d287b7fc15e /table/adj.go
parentb99a2dc874c81e8c2b1732626709f3279bef7ceb (diff)
table: fix bug of adj-table accepted counter
old filtered value could be POLICY_DIRECTION_IMPORT Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r--table/adj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go
index f1843859..5ef540f6 100644
--- a/table/adj.go
+++ b/table/adj.go
@@ -60,7 +60,7 @@ func (adj *AdjRib) Update(pathList []*Path) {
o := old.Filtered(adj.id)
if o == POLICY_DIRECTION_IN && n == POLICY_DIRECTION_NONE {
adj.accepted[rf]++
- } else if o == POLICY_DIRECTION_NONE && n == POLICY_DIRECTION_IN {
+ } else if o != POLICY_DIRECTION_IN && n == POLICY_DIRECTION_IN {
adj.accepted[rf]--
}
} else {