2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
11 #include <sys/ioctl.h>
14 ipfunc_t nametokva(name, iocfunc)
21 strncpy(res.ipfu_name, name, sizeof(res.ipfu_name));
25 if ((opts & OPT_DONTOPEN) == 0) {
26 fd = open(IPL_NAME, O_RDONLY);
30 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
33 if (res.ipfu_addr == NULL)
34 res.ipfu_addr = (ipfunc_t)-1;