load_hash.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (C) 2002 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: load_hash.c,v 1.10 2003/04/26 04:55:11 darrenr Exp $
*/
#include <fcntl.h>
#include "ipf.h"
#if SOLARIS2 >= 10
#include "ip_lookup.h"
#include "ip_htable.h"
#else
#include "netinet/ip_lookup.h"
#include "netinet/ip_htable.h"
#endif
static int hashfd = -1;
{
iphtent_t *a;
int n;
return -1;
return 0;
n++;
else
if ((opts & OPT_DONOTHING) == 0) {
perror("load_hash:SIOCLOOKUPADDTABLE");
return -1;
}
if (opts & OPT_VERBOSE) {
}
perror("calloc(size, sizeof(*iph.iph_table))");
return -1;
}
}
}
return 0;
}