优化查询IP地址
This commit is contained in:
8
common.h
8
common.h
@@ -18,6 +18,10 @@
|
||||
#include <netdb.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#include <sys/resource.h>
|
||||
#include <signal.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#define PRINT_LOG_FILE "Gateway.log"
|
||||
#define BUFFER 1024
|
||||
#define WHITELIST_IP_NUM 1024
|
||||
@@ -31,4 +35,8 @@ extern int isregion(char *str, char (*region_list)[WHITELIST_IP_NUM]);
|
||||
|
||||
extern int8_t copy_new_mem(char *src, int src_len, char **dest);
|
||||
|
||||
extern int is_valid_ip(const char *ip);
|
||||
extern int nice_(int increment);
|
||||
extern int command_exists(const char *command);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user