load_hash.c revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4
/*
* Copyright (C) 2002 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: load_hash.c,v 1.11.2.2 2005/02/01 02:44:05 darrenr Exp $
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <fcntl.h>
#include "ipf.h"
#include "netinet/ip_lookup.h"
#include "netinet/ip_htable.h"
static int hashfd = -1;
{
iphtent_t *a;
int n;
return -1;
n++;
if (n <= 0)
n = 1;
else
"WARNING: empty hash table %s, recommend setting %s\n",
}
if ((opts & OPT_REMOVE) == 0) {
if ((opts & OPT_DONOTHING) == 0) {
perror("load_hash:SIOCLOOKUPADDTABLE");
return -1;
}
}
if (opts & OPT_VERBOSE) {
if (a->ipe_family == AF_INET) {
}
}
perror("calloc(size, sizeof(*iph.iph_table))");
return -1;
}
if (a->ipe_family == AF_INET) {
}
}
}
if ((opts & OPT_REMOVE) != 0) {
if ((opts & OPT_DONOTHING) == 0) {
perror("load_hash:SIOCLOOKUPDELTABLE");
return -1;
}
}
return 0;
}