diff options
| author | liuxueli <[email protected]> | 2023-09-06 17:58:13 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-09-20 16:57:58 +0800 |
| commit | 060418449ec4828dc26a1cd3c411806ec1543e85 (patch) | |
| tree | a61aa323d9b61a2e44b84982e64e488d5f6a7045 | |
| parent | 549c5d31d1e3b7f25c93f6c3a08e4015415d7122 (diff) | |
TSG-15343: TCPALL入口判断Drop After N Packet时, 增加会话是否执行为Drop After N Packet的策略标识
| -rw-r--r-- | src/tsg_bridge.cpp | 1 | ||||
| -rw-r--r-- | src/tsg_bridge.h | 3 | ||||
| -rw-r--r-- | src/tsg_entry.cpp | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/tsg_bridge.cpp b/src/tsg_bridge.cpp index ae2750e..acb289f 100644 --- a/src/tsg_bridge.cpp +++ b/src/tsg_bridge.cpp @@ -662,6 +662,7 @@ int srt_action_context_set_after_n_packet(const struct streaminfo *a_stream, int } srt_action_context->hited_para.after_n_packets=after_n_packets; + srt_action_context->is_drop_after_n_packets=1; return 1; } diff --git a/src/tsg_bridge.h b/src/tsg_bridge.h index 8e2d754..c5c63ef 100644 --- a/src/tsg_bridge.h +++ b/src/tsg_bridge.h @@ -117,7 +117,8 @@ struct session_runtime_action_context char set_latency_flag; char direction; char state; - char padding[4]; + char is_drop_after_n_packets; + char padding[3]; enum TSG_METHOD_TYPE method_type; enum TSG_PROTOCOL protocol; char *l4_protocol; diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 39aa2d6..107fcd3 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -2343,7 +2343,7 @@ static unsigned char tsg_master_all_entry(const struct streaminfo *a_stream, uns case TSG_METHOD_TYPE_DROP: case TSG_METHOD_TYPE_APP_DROP: { - if(srt_action_context->hited_para.after_n_packets==0) + if(srt_action_context->is_drop_after_n_packets==0) { break; } |
