network_udp.c
branch0.5
changeset 5425 1a9efec6fd29
parent 5424 f09762e44457
child 5438 024eb27ab119
--- a/network_udp.c	Wed Jan 31 12:39:41 2007 +0000
+++ b/network_udp.c	Wed Jan 31 12:47:35 2007 +0000
@@ -538,9 +538,11 @@
 		_network_udp_packet[type](p, client_addr);
 	} else {
 		if (!_udp_cs.has_quit) {
-			DEBUG(net, 0)("[NET][UDP] Received invalid packet type %d", type);
+			DEBUG(net, 0)("[NET][UDP] Received invalid packet type %d from %s:%d",
+					type, inet_ntoa(client_addr->sin_addr), ntohs(client_addr->sin_port));
 		} else {
-			DEBUG(net, 0)("[NET][UDP] Received illegal packet");
+			DEBUG(net, 0)("[NET][UDP] Received illegal packet from %s:%d",
+					inet_ntoa(client_addr->sin_addr), ntohs(client_addr->sin_port));
 		}
 	}
 }