AS4Path (const uint8_t* d, size_t len)
throw(CorruptMessage) | AS4Path |
Construct from received data from 4-byte peer.
AS4Path (const char *as_path)
throw(InvalidString) | AS4Path |
Initialize from a string in the format 3.1,2,(3,10.4,5),6,7,8,(9,10,11),12,13
AS4Path (const uint8_t* d, size_t len, const ASPath& as_path)
throw(CorruptMessage) | AS4Path |
Construct from received data from 2-byte peer. 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.
void cross_validate (const ASPath& as_path)
| cross_validate |