mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-04 11:39:39 -04:00
25 lines
320 B
C
25 lines
320 B
C
#include <stdio.h>
|
|
#include <blacklist.h>
|
|
|
|
#include "pfilter.h"
|
|
|
|
static struct blacklist *blstate;
|
|
|
|
void
|
|
pfilter_open(void)
|
|
{
|
|
if (blstate == NULL)
|
|
blstate = blacklist_open();
|
|
}
|
|
|
|
void
|
|
pfilter_notify(int what, const char *msg)
|
|
{
|
|
pfilter_open();
|
|
|
|
if (blstate == NULL)
|
|
return;
|
|
|
|
blacklist_r(blstate, what, 0, msg);
|
|
}
|