From 8320dcb94d7e601b2a0a8d754acff89e2abc11df Mon Sep 17 00:00:00 2001 From: lijia Date: Tue, 6 Apr 2021 18:40:14 +0800 Subject: 修复MSO_STREAM_UP_LAYER_TUNNEL_TYPE选项没有break的BUG. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dealpkt/deal_udp.c | 1 + src/dealpkt/plug_support.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dealpkt/deal_udp.c b/src/dealpkt/deal_udp.c index 16e4522..7b72603 100644 --- a/src/dealpkt/deal_udp.c +++ b/src/dealpkt/deal_udp.c @@ -559,6 +559,7 @@ int dealipv4udppkt(struct streamindex *pindex, const struct mesa_ip4_hdr * this_ } if((sapp_global_val->config.packet_io.dup_pkt_para.dup_pkt_distinguish_enable != 0) + && (0 == is_overlay_udp_layer) /* vxlanıϢʶظ, Ϊʵinline deviceıȫһ, ipid */ && (sapp_dup_pkt_identify_udp_v4(thread_num, pstream_pr, pdetail_pr->udpdetail_public.clientpktnum+pdetail_pr->udpdetail_public.serverpktnum, this_iphdr, udph) != 0)){ local_sys_stat->count[SAPP_STAT_RCV_DUP_UDP]++; local_sys_stat->length[SAPP_STAT_RCV_DUP_UDP] += ulen; diff --git a/src/dealpkt/plug_support.c b/src/dealpkt/plug_support.c index b542c2b..e17b7d1 100644 --- a/src/dealpkt/plug_support.c +++ b/src/dealpkt/plug_support.c @@ -1206,6 +1206,7 @@ int MESA_get_stream_opt(const struct streaminfo *pstream, enum MESA_stream_opt o *out_val = pstream_pr->stream_carry_up_layer_tunnel_type; ret = 0; } + break; case MSO_STREAM_CLOSE_REASON: { -- cgit v1.2.3