summaryrefslogtreecommitdiffhomepage
path: root/server/rpki.go
diff options
context:
space:
mode:
authorEiichiro Watanabe <a16tochjp@gmail.com>2016-01-20 10:35:31 +0900
committerEiichiro Watanabe <a16tochjp@gmail.com>2016-01-20 10:35:31 +0900
commitb42e8d9a9ff3ffbdb4ce2c03f29a810ce222db02 (patch)
tree2b067fe3ffd6dbbcd9834aecd6c3ed644b7411d3 /server/rpki.go
parent8bb77472faceccadd92b9aae35d0e9ade70e4424 (diff)
server: fix cache reset handling
Diffstat (limited to 'server/rpki.go')
-rw-r--r--server/rpki.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/server/rpki.go b/server/rpki.go
index 6a205aa3..492587ae 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -18,6 +18,12 @@ package server
import (
"bufio"
"fmt"
+ "net"
+ "sort"
+ "strconv"
+ "strings"
+ "time"
+
log "github.com/Sirupsen/logrus"
"github.com/armon/go-radix"
api "github.com/osrg/gobgp/api"
@@ -25,11 +31,6 @@ import (
"github.com/osrg/gobgp/packet"
"github.com/osrg/gobgp/table"
"gopkg.in/tomb.v2"
- "net"
- "sort"
- "strconv"
- "strings"
- "time"
)
type roaBucket struct {
@@ -292,6 +293,7 @@ func (c *roaManager) handleRTRMsg(client *roaClient, state *config.RpkiServerSta
client.sessionID = msg.RTRCommon.SessionID
client.serialNumber = msg.RTRCommon.SerialNumber
case *bgp.RTRCacheReset:
+ client.softReset()
received.CacheReset++
case *bgp.RTRErrorReport:
received.Error++