8 PeerProtoStats *proto_stats) {
9 proto_stats->set_open(stats.
open);
10 proto_stats->set_keepalive(stats.
keepalive);
11 proto_stats->set_close(stats.
close);
12 proto_stats->set_update(stats.
update);
19 PeerUpdateStats *rt_stats) {
20 rt_stats->set_total(stats.
total);
21 rt_stats->set_reach(stats.
reach);
22 rt_stats->set_unreach(stats.
unreach);
26 PeerRxErrorStats *dest) {
27 PeerRxInet6ErrorStats error_stats;
32 dest->set_inet6_error_stats(error_stats);
36 PeerRxRouteStats *dest) {
42 PeerUpdateStats *rt_stats_rx,
43 PeerUpdateStats *rt_stats_tx) {
55 PeerStatsData *peer_stats_data) {
56 PeerUpdateStats stats_rx;
57 PeerUpdateStats stats_tx;
60 peer_stats_data->set_raw_rx_update_stats(stats_rx);
61 peer_stats_data->set_raw_tx_update_stats(stats_tx);
65 PeerStatsInfo *stats) {
66 PeerProtoStats proto_stats_tx;
67 PeerProtoStats proto_stats_rx;
68 PeerUpdateStats rt_stats_rx;
69 PeerUpdateStats rt_stats_tx;
70 PeerRxErrorStats dest_error_stats_rx;
71 PeerRxRouteStats dest_route_stats_rx;
91 stats->set_rx_proto_stats(proto_stats_rx);
92 stats->set_tx_proto_stats(proto_stats_tx);
93 stats->set_rx_update_stats(rt_stats_rx);
94 stats->set_tx_update_stats(rt_stats_tx);
95 stats->set_rx_error_stats(dest_error_stats_rx);
96 stats->set_rx_route_stats(dest_route_stats_rx);
tbb::atomic< uint64_t > unreach
virtual void GetRxErrorStats(RxErrorStats *stats) const =0
virtual void GetTxRouteUpdateStats(UpdateStats *stats) const =0
static void FillRxRouteStats(const IPeerDebugStats::RxRouteStats &src, PeerRxRouteStats *dest)
tbb::atomic< uint64_t > total
static void FillRxErrorStats(const IPeerDebugStats::RxErrorStats &src, PeerRxErrorStats *dest)
tbb::atomic< uint64_t > close
virtual void GetRxRouteStats(RxRouteStats *stats) const =0
static void FillPeerUpdateStats(const IPeerDebugStats *peer_stats, PeerStatsData *peer_stats_data)
tbb::atomic< uint64_t > primary_path_count
static void FillProtoStats(const IPeerDebugStats::ProtoStats &stats, PeerProtoStats *proto_stats)
tbb::atomic< uint64_t > inet6_bad_nexthop_count
tbb::atomic< uint64_t > notification
tbb::atomic< uint64_t > reach
tbb::atomic< uint64_t > total_path_count
static void FillRouteUpdateStats(const IPeerDebugStats::UpdateStats &stats, PeerUpdateStats *rt_stats)
static void FillPeerDebugStats(const IPeerDebugStats *peer_stats, PeerStatsInfo *stats)
tbb::atomic< uint64_t > inet6_bad_prefix_count
virtual void GetRxProtoStats(ProtoStats *stats) const =0
tbb::atomic< uint64_t > open
tbb::atomic< uint64_t > keepalive
tbb::atomic< uint64_t > update
virtual void GetTxProtoStats(ProtoStats *stats) const =0
tbb::atomic< uint64_t > inet6_bad_afi_safi_count
tbb::atomic< uint64_t > inet6_bad_xml_token_count
virtual void GetRxRouteUpdateStats(UpdateStats *stats) const =0