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