summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-16 10:50:44 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-17 10:04:19 +0900
commita730f029aafbda89efc4e2f1f45fd41459d3b913 (patch)
tree574673031edf5f23aeb0ca73be8b7b6196de859c
parenta0cfb2edcd60cba7aa4b4d68e814846fb39f5fa1 (diff)
server: add debug messages about tcp md5
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--server/server.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index 81950c91..280194d6 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1678,7 +1678,15 @@ func (server *BgpServer) addNeighbor(c *config.Neighbor) error {
if server.bgpConfig.Global.Config.Port > 0 {
for _, l := range server.Listeners(addr) {
- SetTcpMD5SigSockopts(l, addr, c.Config.AuthPassword)
+ if err := SetTcpMD5SigSockopts(l, addr, c.Config.AuthPassword); err != nil {
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ }).Debugf("failed to set md5 %s %s", addr, err)
+ } else {
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ }).Debugf("successfully set md5 %s", addr)
+ }
}
}
log.WithFields(log.Fields{