class BGPUpdateAttrib

Encoding used in BGP update packets to encode prefixes (IPv4 only) for withdrawn routes and NLRI information. More...

Definition#include <update_attrib.hh>
InheritsIPv4Net (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

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 Thu Aug 28 12:52:17 2003, using kdoc 2.0a54+XORP.