|
|
Encoding used in BGP update packets to encode prefixes (IPv4 only) for withdrawn routes and NLRI information.
The prefixes are passed on the wire in a compressed format: 1 byte: prefix length L (in bits) n bytes: prefix, L bits (n = (L+7)/8)
Effectively, this class is just an IPv4Net. We only need methods to encode and decode the objects.
BGPUpdateAttrib (const IPv4& d, uint8_t s)
| BGPUpdateAttrib |
construct from an address d and masklength s
BGPUpdateAttrib (const IPv4Net& p)
| BGPUpdateAttrib |
BGPUpdateAttrib (const uint8_t *d)
| BGPUpdateAttrib |
Construct from wire format
void copy_out (uint8_t *d)
| copy_out |
[const]
store in memory in wire format
size_t wire_size ()
| wire_size |
[const]
total size in encoded format
size_t size (const uint8_t *d)
throw(CorruptMessage) | size |
[static]
size_t calc_byte_size ()
| calc_byte_size |
[const]
const IPv4Net& net ()
| net |
[const]
string str (string nlri_or_withdraw)
| str |
[const]
Generated by: pavlin on possum.icir.org on Mon Mar 10 19:34:59 2003, using kdoc 2.0a54+XORP. |