load_hash.c revision 7663b81667fda05833f609eceac713f0a83c2347
/*
* 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 $
*
* Copyright 2005 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"
#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) {
if (a->ipe_family == AF_INET) {
}
}
perror("calloc(size, sizeof(*iph.iph_table))");
return -1;
}
if (a->ipe_family == AF_INET) {
}
}
}
return 0;
}