2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
11 static const char rcsid[] = "@(#)$Id$";
22 if ((np->in_flags & IPN_TCPUDP) == IPN_TCPUDP)
24 else if (np->in_flags & IPN_TCP)
26 else if (np->in_flags & IPN_UDP)
28 else if (np->in_flags & IPN_ICMPQUERY)
32 * To make up for "ip = 252" and "hopopt = 0" in /etc/protocols
33 * The IANA has doubled up on the definition of 0 - it is now
34 * also used for IPv6 hop-opts, so we can no longer rely on
35 * /etc/protocols providing the correct name->number mapping.
38 else if (np->in_pr[0] == 0)
41 PRINTF("%s", pr->p_name);
43 PRINTF("%d", np->in_pr[0]);
51 PRINTF("%s", pr->p_name);