libbgp  0.6
A C++ BGP Library.
bgp-bad-message.h
Go to the documentation of this file.
1 
11 #ifndef BGP_BAD_MSG_H_
12 #define BGP_BAD_MSG_H_
13 
14 #include "bgp-message.h"
15 #include <stdint.h>
16 
17 namespace libbgp {
18 
24 class BgpBadMessage : public BgpMessage {
25 public:
26  BgpBadMessage(BgpLogHandler *logger, uint8_t type);
27 
28  ssize_t doPrint(size_t indent, uint8_t **to, size_t *buf_sz) const;
29  ssize_t parse(const uint8_t *from, size_t msg_sz);
30  ssize_t write(uint8_t *to, size_t buf_sz) const;
31 };
32 
33 }
34 
35 #endif // BGP_BAD_MSG_H_
The BGP Message base.
ssize_t write(uint8_t *to, size_t buf_sz) const
Serialize a BGP message body.
BgpBadMessage(BgpLogHandler *logger, uint8_t type)
Construct a new Bgp Bad Message:: Bgp Bad Message object.
ssize_t parse(const uint8_t *from, size_t msg_sz)
Deserialize a BGP message body.
The BgpMessage base class.
Definition: bgp-message.h:35
Definition: bgp-afi.h:14
The BgpLogHandler class.
The BgpBadMessage class.
ssize_t doPrint(size_t indent, uint8_t **to, size_t *buf_sz) const
Print implementation.