Forward the bundle only if P(B,D) > P(A,D) (same as GRTR) and if the bundle has been forwarded (NF) less than max times (NF_Max). More...
#include <Decider.h>
Public Member Functions | |
virtual | ~FwdDeciderGTMX () |
Destructor. | |
bool | operator() (const Bundle *) const |
Virtual from Decider. | |
u_int | max_forward () const |
Accessors. | |
Protected Member Functions | |
FwdDeciderGTMX (FwdStrategy::fwd_strategy_t fs, const Link *nexthop, BundleCore *core, const Table *local, const Table *remote, u_int max_fwd, bool relay) | |
Constructor. | |
Protected Attributes | |
u_int | max_fwd_ |
local configuration setting for NF_max | |
Friends | |
class | Decider |
Forward the bundle only if P(B,D) > P(A,D) (same as GRTR) and if the bundle has been forwarded (NF) less than max times (NF_Max).
Definition at line 127 of file Decider.h.
virtual prophet::FwdDeciderGTMX::~FwdDeciderGTMX | ( | ) | [inline, virtual] |
prophet::FwdDeciderGTMX::FwdDeciderGTMX | ( | FwdStrategy::fwd_strategy_t | fs, | |
const Link * | nexthop, | |||
BundleCore * | core, | |||
const Table * | local, | |||
const Table * | remote, | |||
u_int | max_fwd, | |||
bool | relay | |||
) | [protected] |
u_int prophet::FwdDeciderGTMX::max_forward | ( | ) | const [inline] |
Virtual from Decider.
Reimplemented from prophet::FwdDeciderGRTR.
Definition at line 87 of file Decider.cc.
References prophet::Decider::core_, prophet::Bundle::creation_ts(), prophet::Bundle::destination_id(), prophet::Decider::is_relay_, prophet::BundleCore::is_route(), LOG, max_fwd_, prophet::Decider::next_hop_, prophet::Link::nexthop(), prophet::Bundle::num_forward(), prophet::Link::remote_eid(), and prophet::Bundle::sequence_num().
friend class Decider [friend] |
Reimplemented from prophet::FwdDeciderGRTR.
u_int prophet::FwdDeciderGTMX::max_fwd_ [protected] |
local configuration setting for NF_max
Definition at line 154 of file Decider.h.
Referenced by max_forward(), and operator()().