2005-04-25 13:31:50 -04:00
|
|
|
|
|
|
|
|
/*
|
2013-08-11 10:28:45 -04:00
|
|
|
* Copyright (C) 2012 by Darren Reed.
|
2005-04-25 13:31:50 -04:00
|
|
|
*
|
|
|
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
|
|
|
*
|
2013-08-11 10:28:45 -04:00
|
|
|
* $Id$
|
2005-04-25 13:31:50 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
|
|
#include "ipf.h"
|
|
|
|
|
|
|
|
|
|
#ifndef MIN
|
|
|
|
|
# define MIN(a,b) ((a) > (b) ? (b) : (a))
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char *icmpcodes[MAX_ICMPCODE + 1] = {
|
|
|
|
|
"net-unr", "host-unr", "proto-unr", "port-unr", "needfrag", "srcfail",
|
|
|
|
|
"net-unk", "host-unk", "isolate", "net-prohib", "host-prohib",
|
|
|
|
|
"net-tos", "host-tos", "filter-prohib", "host-preced", "preced-cutoff",
|
|
|
|
|
NULL };
|