class EmulateSubnetHops

Bind together a set of IO classes like EmulateSubnet, however, in this case, any OLSR protocol messages which flow through this entity have their hopcount and TTL decremented by a given integer. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods


Detailed Description

Bind together a set of IO classes like EmulateSubnet, however, in this case, any OLSR protocol messages which flow through this entity have their hopcount and TTL decremented by a given integer.

TODO: Simulate ETX-measurable loss on link. For this we need only drop HELLO messages to create a situation where the measured ETX for the link will increase.

 EmulateSubnetHops (TestInfo& info, EventLoop& eventloop, uint8_t hopdelta = 1, uint8_t maxlinks = 2)

EmulateSubnetHops

 ~EmulateSubnetHops ()

~EmulateSubnetHops

[virtual]

inline uint8_t  hopdelta ()

hopdelta

[const]

inline size_t  empty_pkt_drops ()

empty_pkt_drops

[const]

inline size_t  ttl_msg_drops ()

ttl_msg_drops

[const]

void  bind_interface (const string& instance, const string& interface, const string& vif, const IPv4& listen_addr, const uint16_t listen_port, DebugIO& io)

bind_interface

When used to simulate a cloud, enforce any limit on the number of links connected to that cloud by using a run-time assertion.

Reimplemented from EmulateSubnet.

void  forward (Frame frame)

forward

[protected]

Forward the given OLSR frame, however, decrement the hop counts in the Packet and in any contained Messages. Note that duplicate packet detection is NOT performed; it is always assumed that the given frame will be forwarded in either direction.

Reimplemented from EmulateSubnet.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:06:13 2008, using kdoc 2.0a54+XORP.