xref: /freebsd/sbin/ipf/libipf/icmpcode.c (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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