/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: extras.c,v 1.12 2002/07/13 12:06:49 darrenr Exp $
*/
#include "ipf.h"
/*
* deal with extra bits on end of the line
*/
char ***cp;
int linenum;
{
int notopt;
opts = 0;
secmsk = 0;
notopt = 0;
(*cp)++;
if (!**cp)
return -1;
while (**cp) {
notopt = 1;
(*cp)++;
continue;
if (!notopt)
goto nextopt;
if (!notopt)
goto nextopt;
if (!notopt)
goto nextopt;
if (!notopt)
goto nextopt;
if (!notopt)
goto nextopt;
if (!notopt)
goto nextopt;
if (!*(*cp + 1)) {
linenum);
return -1;
}
(*cp)++;
return -1;
if (notopt) {
if (!secmsk) {
} else {
}
} else {
}
"%d: short cannot be used with TCP flags\n",
linenum);
return -1;
}
if (!notopt)
goto nextopt;
} else
return -1;
notopt = 0;
opts = 0;
secmsk = 0;
(*cp)++;
}
return 0;
}