فهرست منبع

empty packets are no longer reported to syslog (too much garbage because
of nat referesh messages)

Jiri Kuthan 22 سال پیش
والد
کامیت
40e1a4f020
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      udp_server.c

+ 2 - 2
udp_server.c

@@ -330,8 +330,8 @@ int udp_rcv_loop()
 		buf[len]=0; /* no need to save the previous char */
 
 #ifndef NO_ZERO_CHECKS
-		if (len==0) {
-			LOG(L_WARN, "WARNING: empty packet received\n");
+		if (len<5) {
+			DBG("DEBUG: probing packet received\n");
 			continue;
 		}
 		if (buf[len-1]==0) {