From 4a67a6b3be2120a19b202c73db4fff5454a20f8e Mon Sep 17 00:00:00 2001 From: liuyang Date: Wed, 22 May 2019 14:10:30 +0800 Subject: [PATCH] =?UTF-8?q?mirror=5Fstream.cpp:212=E8=A1=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8F=98=E9=87=8Fstruct=20sockaddr=5Fll=20addr?= =?UTF-8?q?=E7=9A=84memset=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/decrypt-mirroring/src/mirror_stream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/business/decrypt-mirroring/src/mirror_stream.cpp b/plugin/business/decrypt-mirroring/src/mirror_stream.cpp index 6aaf20c..2d1dcea 100644 --- a/plugin/business/decrypt-mirroring/src/mirror_stream.cpp +++ b/plugin/business/decrypt-mirroring/src/mirror_stream.cpp @@ -209,6 +209,8 @@ int deliver_sendpkt_ether(int thread_seq,int buflen,unsigned char* buf,unsigned // struct sockaddr_ll addr={0}; struct sockaddr_ll addr; + memset(&addr,0,sizeof(struct sockaddr_ll)); + addr.sll_family=AF_PACKET; addr.sll_halen=ETHER_ADDR_LEN; addr.sll_ifindex=g_deliver_globle_info.sendinfo.ifr.ifr_ifindex;