2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
13 printlookup(base, addr, mask)
15 i6addr_t *addr, *mask;
19 switch (addr->iplookuptype)
31 PRINTF("lookup(%x)=", addr->iplookuptype);
35 if (addr->iplookupsubtype == 0)
36 PRINTF("%u", addr->iplookupnum);
37 else if (addr->iplookupsubtype == 1) {
38 strncpy(name, base + addr->iplookupname, sizeof(name));
39 name[sizeof(name) - 1] = '\0';