diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-22 15:10:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-23 14:34:55 +0900 |
commit | 0ff4c8b20da26434f72bdb8597234704b8d8d5f8 (patch) | |
tree | 0c88fc39696f726f06bea567ec2094643a27994c /server/bmp.go | |
parent | d936841fb3238cc9ad0f728e1c929c8fad783290 (diff) |
bmp: Implement Information TLV on Termination messages
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/bmp.go')
-rw-r--r-- | server/bmp.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |