checkIPaddress
int checkIPaddress(char *addr, int len, char **newaddr);
af = checkIPaddress(*val, len, &tmpstr);
if (checkIPaddress(key->dptr, key->dsize, &ipaddr) > 0) {
if (checkIPaddress(key, strlen(key), &sipkey) > 0) {