class BGPUpdateAttrib

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

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

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 mask length 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 kobe.xorp.net on Wed Jan 7 19:11:04 2009, using kdoc 2.0a54+XORP.