denyhosts/rule.h
2024-05-27 16:05:31 +08:00

27 lines
427 B
C

#ifndef RULE_H
#define RULE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "rhost.h"
#include "conf.h"
#include "common.h"
#include "libiptc.h"
#include "ip2region/ip2region.h"
#define RHOST_KEY "rhost="
#define BUFFER_SIZE 1024
#define WHITELIST_IP_NUM 1024
extern int rule_(conf *conf, char *LOG_FILE);
#endif