2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
11 static const char rcsid[] = "@(#)$Id$";
16 printproto(struct protoent *pr, int p, ipnat_t *np)
19 if ((np->in_flags & IPN_TCPUDP) == IPN_TCPUDP)
21 else if (np->in_flags & IPN_TCP)
23 else if (np->in_flags & IPN_UDP)
25 else if (np->in_flags & IPN_ICMPQUERY)
27 else if (np->in_pr[0] == 0)
30 PRINTF("%s", pr->p_name);
32 PRINTF("%d", np->in_pr[0]);
35 PRINTF("%s", pr->p_name);