/*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id: facpri.c,v 1.6 2003/12/01 01:59:43 darrenr Exp $
*/
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <strings.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <stddef.h>
#include <syslog.h>
#include "facpri.h"
#if !defined(lint)
#endif
typedef struct table {
char *name;
int value;
} table_t;
{ "uucp", LOG_UUCP },
{ "cron2", LOG_CRON1 },
#else
{ "cron", LOG_CRON1 },
#endif
#ifdef LOG_FTP
{ "ftp", LOG_FTP },
#endif
#ifdef LOG_AUTHPRIV
{ "authpriv", LOG_AUTHPRIV },
#endif
#ifdef LOG_AUDIT
{ "audit", LOG_AUDIT },
#endif
#ifdef LOG_LFMT
{ "logalert", LOG_LFMT },
#endif
{ "cron", LOG_CRON2 },
#else
{ "cron2", LOG_CRON2 },
#endif
#ifdef LOG_SECURITY
{ "security", LOG_SECURITY },
#endif
{ NULL, 0 }
};
/*
* map a facility number to its name
*/
char *
int facpri;
{
int i, j, fac;
j = fac >> 3;
if (j < 24) {
}
return NULL;
}
/*
* map a facility name to its number
*/
int
char *name;
{
int i;
return -1;
}
{ NULL, 0 }
};
/*
* map a priority name to its number
*/
int
char *name;
{
int i;
return -1;
}
/*
* map a priority number to its name
*/
char *
int facpri;
{
int i, pri;
return NULL;
}