call_to_ip(call)
unsigned char *call_to_ip(call)
call_to_ip(call)unsigned char *call;{	struct route_table_entry* rp;	unsigned char mycall[7];	int i;	if(call==NULL)		return NULL;	for(i=0; i<6; i++)		mycall[i] = call[i] & 0xfe;	mycall[6] = (call[6] & 0x1e) | 0x60;	LOGL4("lookup call %s ",call_to_a(mycall));	rp=route_tbl;	while (rp) {		if (addrmatch(mycall,rp->callsign)) {			LOGL4("found ip addr %s\n",				(char *)inet_ntoa(*(struct in_addr *)rp->ip_addr));			return rp->ip_addr;		}		rp=rp->next;	}	/*	 * No match found in the routing table, use the default route if	 * we have one defined.	 */	if (default_route) {		LOGL4("failed, using default ip addr %s\n",				(char *)inet_ntoa(*(struct in_addr *)default_route->ip_addr));		return default_route->ip_addr;	}	LOGL4("failed.\n");	return NULL;}