Skip to content

Commit

Permalink
do not quit when got pcap error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Aug 27, 2020
1 parent cc6ea76 commit 59819db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,9 @@ int send_raw_packet(raw_info_t &raw_info,const char * packet,int len)
int ret=pcap_sendpacket(pcap_handle,(const unsigned char *)buf,len+pcap_link_header_len);
if(ret!=0)
{
mylog(log_fatal,"pcap_sendpcaket failed with vaule %d,%s\n",ret,pcap_geterr(pcap_handle));
mylog(log_warn,"pcap_sendpcaket failed with vaule %d,%s, data_len=%d\n",ret,pcap_geterr(pcap_handle),len);
//pthread_mutex_unlock(&pcap_mutex);
myexit(-1);
//myexit(-1);
}
//pthread_mutex_unlock(&pcap_mutex);
/*
Expand Down

0 comments on commit 59819db

Please sign in to comment.