Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / cmd / ipf / lib / common / printlookup.c
blobffc822e595509f0303118638c30c8ae2bc325d3f
1 /*
2 * Copyright (C) 2005 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 */
8 #pragma ident "%Z%%M% %I% %E% SMI"
10 #include "ipf.h"
13 void printlookup(addr, mask)
14 i6addr_t *addr, *mask;
16 switch (addr->iplookuptype)
18 case IPLT_POOL :
19 printf("pool/");
20 break;
21 case IPLT_HASH :
22 printf("hash/");
23 break;
24 default :
25 printf("lookup(%x)=", addr->iplookuptype);
26 break;
29 printf("%u", addr->iplookupnum);
30 if (opts & OPT_UNDEF) {
31 if (mask->iplookupptr == NULL)
32 printf("(!)");