From 0ff4c8b20da26434f72bdb8597234704b8d8d5f8 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 22 May 2017 15:10:52 +0900 Subject: bmp: Implement Information TLV on Termination messages Signed-off-by: IWASE Yusuke --- server/bmp.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/bmp.go') diff --git a/server/bmp.go b/server/bmp.go index ec2c26ee..e7dc3ea2 100644 --- a/server/bmp.go +++ b/server/bmp.go @@ -221,6 +221,12 @@ func (b *bmpClient) loop() { } } case <-b.dead: + term := bmp.NewBMPTermination([]bmp.BMPTermTLVInterface{ + bmp.NewBMPTermTLV16(bmp.BMP_TERM_TLV_TYPE_REASON, bmp.BMP_TERM_REASON_PERMANENTLY_ADMIN), + }) + if err := write(term); err != nil { + return false + } conn.Close() return true } -- cgit v1.2.3