]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h
Added SMUX reconnect. Fixes #18.
[stg.git] / projects / stargazer / plugins / capture / divert_freebsd / divert_cap.h
index 432ee4b1a27ea55c37a0d18aaed7bb52fe3b77e7..25fd29c24cba2079ed4d413b6e0930cafc74aad7 100644 (file)
@@ -33,6 +33,7 @@ $Date: 2009/06/23 11:32:27 $
 
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
 
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
+#include "stg/logger.h"
 
 class USERS;
 class TARIFFS;
 
 class USERS;
 class TARIFFS;
@@ -59,10 +60,13 @@ public:
     int                 ParseSettings();
     const std::string & GetStrError() const { return errorStr; }
     const std::string   GetVersion() const;
     int                 ParseSettings();
     const std::string & GetStrError() const { return errorStr; }
     const std::string   GetVersion() const;
-    uint16_t            GetStartPosition() const { return 10; }
-    uint16_t            GetStopPosition() const { return 10; }
+    uint16_t            GetStartPosition() const { return 40; }
+    uint16_t            GetStopPosition() const { return 40; }
 
 private:
 
 private:
+    DIVERT_CAP(const DIVERT_CAP & rvalue);
+    DIVERT_CAP & operator=(const DIVERT_CAP & rvalue);
+
     static void *       Run(void *);
 
     int                 DivertCapOpen();
     static void *       Run(void *);
 
     int                 DivertCapOpen();
@@ -74,6 +78,7 @@ private:
     MODULE_SETTINGS     settings;
 
     int                 port;
     MODULE_SETTINGS     settings;
 
     int                 port;
+    bool                disableForwarding;
 
     mutable std::string errorStr;
 
 
     mutable std::string errorStr;
 
@@ -83,6 +88,8 @@ private:
     bool                isRunning;
 
     TRAFFCOUNTER *      traffCnt;
     bool                isRunning;
 
     TRAFFCOUNTER *      traffCnt;
+
+    PLUGIN_LOGGER       logger;
 };
 //-----------------------------------------------------------------------------
 
 };
 //-----------------------------------------------------------------------------