add: if (errno==EINVAL) LOG(L_CRIT,"CRITICAL: invalid sendtoparameters\n" "one possible reason is the server is bound to localhost and\n" "attempts to send to the net\n");
context: int udp_send(char *buf, unsigned len, struct sockaddr*  to, unsigned tolen){	int n;again:	n=sendto(udp_sock, buf, len, 0, to, tolen);	if (n==-1){		LOG(L_ERR, "ERROR: udp_send: sendto: %s\n", strerror(errno));		if (errno==EINTR) goto again;	}	return n;}