diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-24 13:20:35 +0900 |
---|---|---|
committer | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-06-09 11:23:06 +0900 |
commit | 7854b9a6c376aecb45f1c6837a1555808ec052a3 (patch) | |
tree | b1b9e5579ef8a24fa8b1fbf4fd5165af7fd24cf3 /server/bmp.go | |
parent | 4bce52c3f37d2e69b5184c6be472565cd6bea483 (diff) |
bmp: Support number of withdraw updates and prefixes
This patch enables to send BMP statistics reports for the following types;
- Stat Type = 11: (32-bit Counter) Number of updates subjected to
treat-as-withdraw treatment.
- Stat Type = 12: (32-bit Counter) Number of prefixes subjected to
treat-as-withdraw treatment.
Note: Currently, this implementation considers only updates or prefixes
received from neighbors, but not enough to follow the handling process
described in RFC7606.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/bmp.go')
-rw-r--r-- | server/bmp.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/bmp.go b/server/bmp.go index 16db2c55..4d76822b 100644 --- a/server/bmp.go +++ b/server/bmp.go @@ -295,6 +295,8 @@ func bmpPeerStats(peerType uint8, peerDist uint64, timestamp int64, neighConf *c []bmp.BMPStatsTLVInterface{ bmp.NewBMPStatsTLV64(bmp.BMP_STAT_TYPE_ADJ_RIB_IN, uint64(neighConf.State.AdjTable.Accepted)), bmp.NewBMPStatsTLV64(bmp.BMP_STAT_TYPE_LOC_RIB, uint64(neighConf.State.AdjTable.Advertised+neighConf.State.AdjTable.Filtered)), + bmp.NewBMPStatsTLV32(bmp.BMP_STAT_TYPE_WITHDRAW_UPDATE, neighConf.State.Messages.Received.WithdrawUpdate), + bmp.NewBMPStatsTLV32(bmp.BMP_STAT_TYPE_WITHDRAW_PREFIX, neighConf.State.Messages.Received.WithdrawPrefix), }, ) } |