|
@@ -97,13 +97,13 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
|
|
len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf);
|
|
len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf);
|
|
if (len<0){
|
|
if (len<0){
|
|
if (len==-1){
|
|
if (len==-1){
|
|
- LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno);
|
|
|
|
|
|
+ LM_ERR("%s [%d]\n", strerror(errno), errno);
|
|
if ((errno==EINTR)||(errno==EWOULDBLOCK))
|
|
if ((errno==EINTR)||(errno==EWOULDBLOCK))
|
|
continue;
|
|
continue;
|
|
else
|
|
else
|
|
goto error;
|
|
goto error;
|
|
}else{
|
|
}else{
|
|
- DBG("raw_udp4_rcv_loop: raw_udp4_recv error: %d\n", len);
|
|
|
|
|
|
+ LM_DBG("error len: %d\n", len);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -117,7 +117,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
|
|
/* sanity checks */
|
|
/* sanity checks */
|
|
if (len<MIN_UDP_PACKET){
|
|
if (len<MIN_UDP_PACKET){
|
|
tmp=ip_addr2a(&ri.src_ip);
|
|
tmp=ip_addr2a(&ri.src_ip);
|
|
- DBG("raw_udp4_rcv_loop: probing packet received from %s %d\n",
|
|
|
|
|
|
+ LM_DBG("probing packet received from %s %d\n",
|
|
tmp, htons(ri.src_port));
|
|
tmp, htons(ri.src_port));
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -127,7 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
tmp=ip_addr2a(&ri.src_ip);
|
|
tmp=ip_addr2a(&ri.src_ip);
|
|
- DBG("raw_udp4_rcv_loop: received from %s:\n[%.*s]\n", tmp, len, p);
|
|
|
|
|
|
+ LM_DBG("received from %s:\n[%.*s]\n", tmp, len, p);
|
|
receive_msg(p, len, &ri);
|
|
receive_msg(p, len, &ri);
|
|
}
|
|
}
|
|
error:
|
|
error:
|