xref: /netbsd-src/external/bsd/ipf/dist/lib/icmpcode.c (revision 13885a665959c62f13a82b3caedf986eaa17aa31)
1 /*	$NetBSD: icmpcode.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
2 
3 /*
4  * Copyright (C) 2012 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  *
8  * Id: icmpcode.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $
9  */
10 
11 #include <ctype.h>
12 
13 #include "ipf.h"
14 
15 #ifndef	MIN
16 # define	MIN(a,b)	((a) > (b) ? (b) : (a))
17 #endif
18 
19 
20 char	*icmpcodes[MAX_ICMPCODE + 1] = {
21 	"net-unr", "host-unr", "proto-unr", "port-unr", "needfrag", "srcfail",
22 	"net-unk", "host-unk", "isolate", "net-prohib", "host-prohib",
23 	"net-tos", "host-tos", "filter-prohib", "host-preced", "preced-cutoff",
24 	NULL };
25