xref: /freebsd/sbin/ipf/libipf/icmpcode.c (revision 2e3f49888ec8851bafb22011533217487764fdb0)
1 
2 /*
3  * Copyright (C) 2012 by Darren Reed.
4  *
5  * See the IPFILTER.LICENCE file for details on licencing.
6  *
7  * $Id$
8  */
9 
10 #include <ctype.h>
11 
12 #include "ipf.h"
13 
14 #ifndef	MIN
15 # define	MIN(a,b)	((a) > (b) ? (b) : (a))
16 #endif
17 
18 
19 char	*icmpcodes[MAX_ICMPCODE + 1] = {
20 	"net-unr", "host-unr", "proto-unr", "port-unr", "needfrag", "srcfail",
21 	"net-unk", "host-unk", "isolate", "net-prohib", "host-prohib",
22 	"net-tos", "host-tos", "filter-prohib", "host-preced", "preced-cutoff",
23 	NULL };
24