diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-17 15:06:04 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-17 15:06:04 -0700 |
commit | 25d9851b65fed9297caaa01b47ec6bae76d8c954 (patch) | |
tree | f408dedd6fddd8cc156002f56f0618b5b0efa261 /src/lbpathtest.hh | |
parent | c1e5c748aac314a2f0652393fbb9f8c079055106 (diff) | |
download | vyatta-wanloadbalance-25d9851b65fed9297caaa01b47ec6bae76d8c954.tar.gz vyatta-wanloadbalance-25d9851b65fed9297caaa01b47ec6bae76d8c954.zip |
reworked target code to support multiple targets and different target types.
user can now specify a sequence of targets to test (ordered by rule number). The first success satifies the success
criteria for the test and no further tests will be performed on the interface for this period.
Additional test types can be coded and added to the target framework.
configuration has changed as a result of the rework.
Diffstat (limited to 'src/lbpathtest.hh')
-rw-r--r-- | src/lbpathtest.hh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lbpathtest.hh b/src/lbpathtest.hh index 903f58d..366a42a 100644 --- a/src/lbpathtest.hh +++ b/src/lbpathtest.hh @@ -16,14 +16,6 @@ using namespace std; -class PktData -{ -public: - PktData(string iface, int rtt) : _iface(iface),_rtt(rtt) {} - string _iface; - int _rtt; -}; - class LBPathTest { public: @@ -34,20 +26,7 @@ public: start(LBData &lb_data); private: - void - send(const string &iface, const string &target_addr, int packet_id); - - int - receive(); - - unsigned short - in_checksum(const unsigned short *buf, int lenght) const; - -private: bool _debug; - int _send_sock; - int _recv_sock; - int _packet_id; }; |