ports.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: ports.c,v 1.9 2002/01/28 06:50:47 darrenr Exp $
*/
#include <ctype.h>
#include "ipf.h"
/*
* check for possible presence of the port fields in the line
*/
char ***seg;
char *proto;
int *cp;
int linenum;
{
int comp = -1;
return 0;
(*seg)++;
return -1;
(*seg)++;
comp = FR_OUTRANGE;
comp = FR_INRANGE;
else {
"%d: unknown range operator (%s)\n",
return -1;
}
(*seg)++;
linenum);
return -1;
}
return -1;
comp = FR_GREATERT;
comp = FR_GREATERTE;
else {
return -1;
}
(*seg)++;
return -1;
}
(*seg)++;
}
return 0;
}