As4Path (const uint8_t* d, size_t len, const AsPath& as_path)
throw(CorruptMessage) | As4Path |
construct from received data. This needs to take the regular AsPath in addition to the AS4_PATH data, because it needs to cross-validate the two.
const uint8_t * encode (size_t &len, uint8_t *buf)
| encode |
[const]
Convert from internal to external representation, with the correct representation for the original AS4_PATH attribute.
If we do not pass a buffer (buf = 0), then the routine will allocate a new one; otherwise, len indicates the size of the input buffer, which must be large enough to store the encoding.
Returns: the pointer to the buffer, len is the actual size.
Reimplemented from AsPath.
size_t wire_size ()
| wire_size |
[const]
Reimplemented from AsPath.