增加bypass_traffic调试开关

* bypass_traffic:0 disable
    * bypass_traffic:1 bypass all       traffic
    * bypass_traffic:2 bypass raw       traffic
    * bypass_traffic:3 bypass decrypted traffic
This commit is contained in:
luwenpeng
2023-05-04 17:56:12 +08:00
parent a2d0f40f76
commit 1577f489c9
3 changed files with 33 additions and 7 deletions

View File

@@ -27,6 +27,9 @@ extern "C"
#define ATOMIC_ADD(x, y) __atomic_fetch_add(x, y, __ATOMIC_RELAXED)
#define ATOMIC_SET(x, y) __atomic_store_n(x, y, __ATOMIC_RELAXED)
#define likely(expr) __builtin_expect((expr), 1)
#define unlikely(expr) __builtin_expect((expr), 0)
/******************************************************************************
* fixed_num_array
******************************************************************************/