xorp

BGPUpdateAttrib Class Reference

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

#include <update_attrib.hh>

Inherits IPNet< IPv4 >.

List of all members.

Public Member Functions

 BGPUpdateAttrib (const IPv4 &d, uint8_t s)
 construct from an address d and mask length s
 BGPUpdateAttrib (const IPv4Net &p)
 BGPUpdateAttrib (const uint8_t *d)
 Construct from wire format.
void copy_out (uint8_t *d) const
 store in memory in wire format
size_t wire_size () const
 total size in encoded format
size_t calc_byte_size () const
const IPv4Netnet () const
string str (string nlri_or_withdraw) const

Static Public Member Functions

static size_t size (const uint8_t *d) throw (CorruptMessage)

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations