31 lines
545 B
C
31 lines
545 B
C
#ifndef CAP_H
|
|
#define CAP_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <pcap.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <netinet/ip.h> // IP header
|
|
#include <netinet/tcp.h> // TCP header
|
|
#include <sys/types.h>
|
|
#include <ctype.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/shm.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
#include "ip2region/ip2region.h"
|
|
|
|
#define RED "\033[31m"
|
|
#define REDEND "\033[0m"
|
|
|
|
#define MAXIPSET 65535
|
|
#define MAXIPSET_RULT_NAME_NUM 26
|
|
|
|
#define _VERSION "0.2"
|
|
|
|
#endif
|