2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: loglevel.c,v 1.5 2001/06/09 17:09:24 darrenr Exp $
12 int loglevel(cpp
, facpri
, linenum
)
23 fprintf(stderr
, "%d: %s\n", linenum
,
24 "missing identifier after level");
28 s
= strchr(*cpp
, '.');
31 fac
= fac_findname(*cpp
);
33 fprintf(stderr
, "%d: %s %s\n", linenum
,
34 "Unknown facility", *cpp
);
37 pri
= pri_findname(s
);
39 fprintf(stderr
, "%d: %s %s\n", linenum
,
40 "Unknown priority", s
);
44 pri
= pri_findname(*cpp
);
46 fprintf(stderr
, "%d: %s %s\n", linenum
,
47 "Unknown priority", *cpp
);