30 GRACEFUL_RESTART = 64,
33 ENHANCED_ROUTE_REFRESH = 70
60 virtual ssize_t
parse(
const uint8_t *from,
size_t msg_sz) = 0;
71 virtual ssize_t
write(uint8_t *to,
size_t buf_sz)
const = 0;
74 ssize_t
parseHeader(
const uint8_t *from,
size_t msg_sz);
95 ssize_t
doPrint(
size_t indent, uint8_t **to,
size_t *buf_sz)
const;
96 ssize_t
parse(
const uint8_t *from,
size_t msg_sz);
97 ssize_t
write(uint8_t *to,
size_t buf_sz)
const;
114 ssize_t
doPrint(
size_t indent, uint8_t **to,
size_t *buf_sz)
const;
115 ssize_t
parse(
const uint8_t *from,
size_t msg_sz);
116 ssize_t
write(uint8_t *to,
size_t buf_sz)
const;
140 ssize_t
doPrint(
size_t indent, uint8_t **to,
size_t *buf_sz)
const;
141 ssize_t
parse(
const uint8_t *from,
size_t msg_sz);
142 ssize_t
write(uint8_t *to,
size_t buf_sz)
const;
virtual ssize_t doPrint(size_t indent, uint8_t **to, size_t *buf_sz) const =0
Print implementation.
The BgpCapabilityMpBgp class.
ssize_t parseHeader(const uint8_t *from, size_t msg_sz)
Parse the capability header (code, length).
The BgpCapabilityUnknow class.
The BgpCapability base class.
uint8_t length
Length of the attribute. Used only when deserializer.
The serializable base class.
The BgpCapability4BytesAsn class.
virtual ssize_t write(uint8_t *to, size_t buf_sz) const =0
Serialize a BGP open message capability.
BgpCapability(BgpLogHandler *logger)
Construct a new Bgp Capability object.
uint8_t safi
Subsequent Address Family Identifier.
uint16_t afi
Address Family Identifier.
virtual ssize_t parse(const uint8_t *from, size_t msg_sz)=0
Deserialize a BGP open message capability.
BgpCapabilityCode
BGP capability codes.