load_hashnode.c revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4
/*
* Copyright (C) 2002 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: load_hashnode.c,v 1.2.4.1 2004/03/06 14:33:28 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;
int unit;
char *name;
{
int err;
return -1;
if ((opts & OPT_REMOVE) == 0)
else
if (err != 0)
if (!(opts & OPT_DONOTHING)) {
perror("load_hash:SIOCLOOKUP*NODE");
return -1;
}
return 0;
}