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;