28 size_t err_len = msg_sz + 19;
29 setError(E_HEADER, E_LENGTH, (uint8_t *) &err_len, 1);
41 return _print(indent, to, buf_sz,
"KeepaliveMessage { }\n");
BgpKeepaliveMessage(BgpLogHandler *logger)
Construct a new Bgp Keepalive Message:: Bgp Keepalive Message object.
ssize_t write(uint8_t *to, size_t buf_sz) const
Serialize a BGP message body.
static ssize_t _print(size_t indent, uint8_t **to, size_t *buf_left, const char *format,...)
Print helper.
ssize_t doPrint(size_t indent, uint8_t **to, size_t *buf_sz) const
Print implementation.
The BgpMessage base class.
void setError(uint8_t err, uint8_t suberr, const uint8_t *data, size_t data_len)
Set the error information.
The BGP keepalive message.
ssize_t parse(const uint8_t *from, size_t msg_sz)
Deserialize a BGP message body.