summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-16 09:51:36 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-16 09:51:36 +0900
commit979fdad86cac0ba67851cd2cf28582f32be2f838 (patch)
treea1162b286173f7f24e227261de976509dd1d85fe /config
parent4e1edd39c2333af217d8972ad8c1b7b0556c93cc (diff)
server: support discarded counters
fujita@ubuntu:~/git/gobgp$ ./cli/gobgpcli show neighbor 10.0.255.7 BGP neighbor is 10.0.255.7, remote AS 65070 BGP version 4, remote router ID 192.168.0.7 BGP state = BGP_FSM_ACTIVE, up for 0:00:01.982115 BGP OutQ = 0, Flops = 4 Neighbor capabilities: MULTIPROTOCOL: advertised and received ROUTE_REFRESH: advertised FOUR_OCTET_AS_NUMBER: advertised and received Message statistics: Sent Rcvd Opens: 4 4 Notifications: 4 0 Updates: 8 0 Keepalives: 4 4 Route Refesh: 0 0 Discarded: 0 4 Total: 20 12 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index dee0b9a5..99995cdc 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -403,6 +403,9 @@ type BgpNeighborCommonStateType struct {
// Dynamic Capability output count
DynamicCapOut uint32
+ DiscardedOut uint32
+ DiscardedIn uint32
+
TotalIn uint32
TotalOut uint32