2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: poolio.c,v 1.1.2.3 2012/07/22 08:04:24 darren_r Exp $
10 #include <sys/ioctl.h>
12 #include "netinet/ip_lookup.h"
13 #include "netinet/ip_pool.h"
15 static int poolfd = -1;
22 if ((opts & OPT_DONTOPEN) != 0)
26 poolfd = open(IPLOOKUP_NAME, O_RDWR);
31 pool_ioctl(iocfunc, cmd, ptr)
36 return (*iocfunc)(poolfd, cmd, ptr);