mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-07 23:59:36 +08:00
changed a few log levels
This commit is contained in:
parent
bb7fe5c0d4
commit
5ff768b165
10
network.cpp
10
network.cpp
@ -551,13 +551,13 @@ int init_raw_socket()
|
|||||||
|
|
||||||
if(send_with_pcap)
|
if(send_with_pcap)
|
||||||
{
|
{
|
||||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_INOUT);//must be used after being actived
|
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));
|
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
|
else
|
||||||
{
|
{
|
||||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);
|
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));
|
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)
|
if(1)
|
||||||
{
|
{
|
||||||
int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);
|
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);
|
assert(g_filter_compile_cnt!=0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user