/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: loglevel.c,v 1.5 2001/06/09 17:09:24 darrenr Exp $
*/
#include "ipf.h"
char **cpp;
int linenum;
{
char *s;
fac = 0;
pri = 0;
if (!*++cpp) {
"missing identifier after level");
return -1;
}
if (s) {
*s++ = '\0';
if (fac == -1) {
"Unknown facility", *cpp);
return -1;
}
pri = pri_findname(s);
if (pri == -1) {
"Unknown priority", s);
return -1;
}
} else {
if (pri == -1) {
"Unknown priority", *cpp);
return -1;
}
}
return 0;
}