新版本采用libipset库操作ipset集合,采用libpcap、libcap抓包获取源IP
This commit is contained in:
18
qqwry/main.c
Normal file
18
qqwry/main.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "qqwry.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
char *qqwry_region = qqwry_("qqwry.dat", "1.1.1.1");
|
||||
if (qqwry_region == NULL) {
|
||||
printf("qqwry 解析地域错误\n");
|
||||
}
|
||||
puts(qqwry_region);
|
||||
|
||||
free(qqwry_region);
|
||||
return 0;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user