diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-07-11 16:58:21 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-07-12 16:06:29 +0300 |
commit | 7b9d10888594ca9fe1114309e53c0dea9089085b (patch) | |
tree | 564133e0a95a22c07be11540540cd627089cbea5 /src/global_io_mode.h | |
parent | cc5cc5631e9df4ef0eee9c26705208dfcf035e8c (diff) |
NAT seq num randomization fully working
Diffstat (limited to 'src/global_io_mode.h')
-rwxr-xr-x | src/global_io_mode.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/global_io_mode.h b/src/global_io_mode.h index 84b402b7..44fa4be5 100755 --- a/src/global_io_mode.h +++ b/src/global_io_mode.h @@ -48,12 +48,13 @@ public: enum Chars{ ccHELP='h', ccGDISABLE='d', - ccGNORAML='n', + ccGNORAML='0', ccGPP='p', ccGAP='a', ccGL='l', ccGRC='r', - ccMem='m' + ccMem='m', + ccNat='n' }; enum CliDumpMode { @@ -67,7 +68,8 @@ public: gDISABLE=0, // no print at all gHELP=1, // help gNORMAL=2, // normal - gMem=3 + gMem=3, + gNAT }; @@ -104,12 +106,20 @@ public: }; typedef uint8_t RxCheckMode_t; + enum NatMode { + natDISABLE = 0, + natENABLE = 1, + natLAST = 2 + }; + typedef uint8_t NatMode_t; + Global_t m_g_mode; bool m_g_disable_first; PerPortCountersMode_t m_pp_mode; AllPortCountersMode_t m_ap_mode; LatecnyMode_t m_l_mode; RxCheckMode_t m_rc_mode; + NatMode_t m_nat_mode; public: void set_mode(CliDumpMode mode); |