gethost.c revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4
/*
* Copyright (C) 1993-2005 by Darren Reed.
* See the IPFILTER.LICENCE file for details on licencing.
*/
#include "ipf.h"
char *name;
{
struct hostent *h;
struct netent *n;
return 0;
}
h = gethostbyname(name);
if (h != NULL) {
return 0;
}
}
n = getnetbyname(name);
if (n != NULL) {
return 0;
}
return -1;
}