_checkhost
if (_checkhost(rhost, ahost+1, baselen))
hostmatch = _checkhost(rhost, ahost, baselen);
static int _checkhost(char *rhost, char *lhost, int len);