MCPcopy Create free account
hub / github.com/SNAS/openbmp / obj_bgp_peer

Class obj_bgp_peer

Server/src/MsgBusInterface.hpp:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 * BGP peer table schema
99 */
100 struct obj_bgp_peer {
101 u_char hash_id[16]; ///< hash of router hash_id, peer_rd, peer_addr, and peer_bgp_id
102 u_char router_hash_id[16]; ///< Router hash ID
103 u_char table_name[255]; ///< Table/VRF name (Info TLV=3)
104
105 char peer_rd[32]; ///< Peer distinguisher ID (string/printed format)
106 char peer_addr[46]; ///< Peer IP address in printed form
107 char peer_bgp_id[16]; ///< Peer BGP ID in printed form
108 uint32_t peer_as; ///< Peer ASN
109 bool isL3VPN; ///< true if peer is L3VPN, otherwise it is Global
110 bool isPrePolicy; ///< True if the routes are pre-policy, false if not
111 bool isAdjIn; ///< True if the routes are Adj-Rib-In, false if not
112 bool isLocRib; ///< True if local RIB
113 bool isLocRibFiltered; ///< True if the local rib is filtered
114 bool isIPv4; ///< true if peer is IPv4 or false if IPv6
115 bool isTwoOctet; ///< Indicates if peer is using 2 octet encoding
116 uint32_t timestamp_secs; ///< Timestamp in seconds since EPOC
117 uint32_t timestamp_us; ///< Timestamp microseconds
118 };
119
120 /**
121 * OBJECT: peer_down_events

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected