31 ssize_t
doPrint(
size_t indent, uint8_t **to,
size_t *buf_sz)
const;
36 ssize_t
parse(
const uint8_t *from,
size_t buf_sz);
37 ssize_t
write(uint8_t *to,
size_t buf_sz)
const;
45 bool is_message_owner;
58 #endif // BGP_PACKET_H_ BgpPacket(BgpLogHandler *logger, bool is_4b, const BgpMessage *msg)
Construct a new BgpPacket object for serializing BGP message.
ssize_t doPrint(size_t indent, uint8_t **to, size_t *buf_sz) const
Print implementation.
The serializable base class.
const BgpMessage * getMessage() const
Get pointer to the contained message.
ssize_t parse(const uint8_t *from, size_t buf_sz)
Deserialize a BGP message.
The BgpMessage base class.
ssize_t write(uint8_t *to, size_t buf_sz) const
Serialize a BGP message.