send_ip(buf, l, targetip) unsigned char *buf; int l; unsigned char *targetip; { int n;
void send_ip(buf, l, targetip) unsigned char *buf; int l; unsigned char *targetip; { int n;
send_ip(buf, l, targetip)unsigned char *buf;int l;unsigned char *targetip;{	int n;	if(l<=0)return;	memcpy((char *)&to.sin_addr, targetip, 4);	memcpy((char *)&to.sin_port, &targetip[4], 2);	LOGL4("sendipdata to=%s %s %d l=%d\n",			(char *)inet_ntoa(to.sin_addr),			to.sin_port ? "udp" : "ip",			ntohs(to.sin_port), l);	if(to.sin_port){		if(udp_mode){			stats.udp_out++;			do {				n = sendto(udpsock, buf, l, 0,					(struct sockaddr *)&to, sizeof to);			} while(io_error(n, buf, l, SEND_MSG, UDP_MODE));		}	} else {		if(ip_mode){			stats.ip_out++;			do {				n = sendto(sock, buf, l, 0,					(struct sockaddr *)&to, sizeof to);			} while(io_error(n, buf, l, SEND_MSG, IP_MODE));		}	}}