xorp

EtxHelloMessage Class Reference

Specialization of a HELLO message with ETX measurements. More...

#include <message.hh>

Inheritance diagram for EtxHelloMessage:
HelloMessage Message

List of all members.

Protected Member Functions

size_t decode_link_tuple (uint8_t *buf, size_t &len, size_t &skiplen, bool has_lq=true) throw (InvalidLinkTuple)
 Decode a single link tuple from the buffer into the HelloMessage.
void add_link (const LinkCode code, const IPv4 &remote_addr, const double &near_etx, const double &far_etx)

Detailed Description

Specialization of a HELLO message with ETX measurements.


Member Function Documentation

size_t EtxHelloMessage::decode_link_tuple ( uint8_t *  buf,
size_t &  len,
size_t &  skiplen,
bool  has_lq = true 
) throw (InvalidLinkTuple) [inline, protected, virtual]

Decode a single link tuple from the buffer into the HelloMessage.

Parameters:
bufpointer to the buffer to decode.
lenthe number of bytes in the buffer.
skiplenthe number of bytes consumed by this function.
has_lqtrue if this function is being called from derived class EtxHelloMessage to process ETX information, otherwise false.
Returns:
the number of bytes consumed in the input stream to produce a decoded link tuple.
Exceptions:
InvalidLinkTupleif an invalid link tuple was found during message decoding.

Reimplemented from HelloMessage.


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