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

Method parseBGP

Server/src/bgp/parseBGP.cpp:50–69  ·  view source on GitHub ↗

* Constructor for class - * * \details * This class parses the BGP message and updates DB. The * 'mysql_ptr' must be a pointer reference to an open mysql connection. * 'peer_entry' must be a pointer to the peer_entry table structure that * has already been populated. * * \param [in] logPtr Pointer to existing Logger for app logging * \param [in] mbus_ptr Poin

Source from the content-addressed store, hash-verified

48 * \param [in,out] peer_info Persistent peer information
49 */
50parseBGP::parseBGP(Logger *logPtr, MsgBusInterface *mbus_ptr, MsgBusInterface::obj_bgp_peer *peer_entry, string routerAddr,
51 BMPReader::peer_info *peer_info) {
52 debug = false;
53
54 logger = logPtr;
55
56 data_bytes_remaining = 0;
57 data = NULL;
58
59 bzero(&common_hdr, sizeof(common_hdr));
60
61 // Set our mysql pointer
62 this->mbus_ptr = mbus_ptr;
63
64 // Set our peer entry
65 p_entry = peer_entry;
66 p_info = peer_info;
67
68 router_addr = routerAddr;
69}
70
71/**
72 * Desctructor

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected