mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-14 01:45:35 +08:00
changed a few log levels
This commit is contained in:
10
network.cpp
10
network.cpp
@@ -551,13 +551,13 @@ int init_raw_socket()
|
||||
|
||||
if(send_with_pcap)
|
||||
{
|
||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_INOUT);//must be used after being actived
|
||||
if(ret!=0) mylog(log_warn,"pcap_setdirection(pcap_handle,PCAP_D_INOUT) failed with value %d, %s\n",ret,pcap_geterr(pcap_handle));
|
||||
ret=pcap_setdirection(pcap_handle,PCAP_D_INOUT);//must be used after being actived
|
||||
if(ret!=0) mylog(log_debug,"pcap_setdirection(pcap_handle,PCAP_D_INOUT) failed with value %d, %s\n",ret,pcap_geterr(pcap_handle));
|
||||
}
|
||||
else
|
||||
{
|
||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);
|
||||
if(ret!=0) mylog(log_warn,"pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value %d, %s\n",ret,pcap_geterr(pcap_handle));
|
||||
ret=pcap_setdirection(pcap_handle,PCAP_D_IN);
|
||||
if(ret!=0) mylog(log_debug,"pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value %d, %s\n",ret,pcap_geterr(pcap_handle));
|
||||
}
|
||||
|
||||
|
||||
@@ -872,7 +872,7 @@ void init_filter(int port)
|
||||
if(1)
|
||||
{
|
||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);
|
||||
if(ret!=0) mylog(log_warn,"pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value %d, %s",ret,pcap_geterr(pcap_handle));
|
||||
if(ret!=0) mylog(log_debug,"pcap_setdirection(pcap_handle,PCAP_D_IN) failed with value %d, %s",ret,pcap_geterr(pcap_handle));
|
||||
}
|
||||
|
||||
assert(g_filter_compile_cnt!=0);
|
||||
|
Reference in New Issue
Block a user