* Constructor for class * * \details Handles bgp update messages * * \param [in] logPtr Pointer to existing Logger for app logging * \param [in] pperAddr Printed form of peer address used for logging * \param [in] routerAddr The router IP address - used for logging * \param [in,out] peer_info Persistent peer information * \param [in] enable_debug
| 33 | * \param [in] enable_debug Debug true to enable, false to disable |
| 34 | */ |
| 35 | UpdateMsg::UpdateMsg(Logger *logPtr, std::string peerAddr, std::string routerAddr, BMPReader::peer_info *peer_info, |
| 36 | bool enable_debug) |
| 37 | : debug(enable_debug), |
| 38 | logger(logPtr), |
| 39 | peer_info(peer_info) { |
| 40 | |
| 41 | this->peer_addr = peerAddr; |
| 42 | this->router_addr = routerAddr; |
| 43 | |
| 44 | // BELOW check is not needed, but it's here as a reminder |
| 45 | // if (peer_info->using_2_octet_asn) |
| 46 | // four_octet_asn = false; |
| 47 | // else |
| 48 | |
| 49 | four_octet_asn = peer_info->recv_four_octet_asn and peer_info->sent_four_octet_asn; |
| 50 | } |
| 51 | |
| 52 | UpdateMsg::~UpdateMsg() { |
| 53 | } |
nothing calls this directly
no outgoing calls
no test coverage detected