mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
do not quit when got pcap error
This commit is contained in:
parent
cc6ea766c4
commit
59819db2dd
@ -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);
|
int ret=pcap_sendpacket(pcap_handle,(const unsigned char *)buf,len+pcap_link_header_len);
|
||||||
if(ret!=0)
|
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);
|
//pthread_mutex_unlock(&pcap_mutex);
|
||||||
myexit(-1);
|
//myexit(-1);
|
||||||
}
|
}
|
||||||
//pthread_mutex_unlock(&pcap_mutex);
|
//pthread_mutex_unlock(&pcap_mutex);
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user