2024-05-13 15:20:25 +08:00
|
|
|
#ifndef FORWARD_TUNNEL_H
|
|
|
|
#define FORWARD_TUNNEL_H
|
2023-03-24 17:48:25 +08:00
|
|
|
|
|
|
|
#include <libssh2.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/select.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <pthread.h>
|
2023-05-05 10:45:19 +08:00
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/resource.h>
|
2023-06-05 11:47:35 +08:00
|
|
|
#include <sys/poll.h>
|
2024-05-14 15:11:08 +08:00
|
|
|
#include <stdbool.h>
|
2023-06-05 11:47:35 +08:00
|
|
|
|
2024-05-13 17:46:18 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <sys/epoll.h>
|
|
|
|
#include <libssh2.h>
|
|
|
|
|
|
|
|
|
2023-03-24 17:48:25 +08:00
|
|
|
#define BUILD(fmt...) do { fprintf(stderr,"%s %s ",__DATE__,__TIME__); fprintf(stderr, ##fmt); } while(0)
|
2023-05-05 10:45:19 +08:00
|
|
|
|
2023-03-24 17:48:25 +08:00
|
|
|
#ifndef INADDR_NONE
|
2024-08-07 16:48:01 +08:00
|
|
|
#define INADDR_NONE (in_addr_t)-1
|
2023-03-24 17:48:25 +08:00
|
|
|
#endif
|
|
|
|
|
2024-08-07 16:48:01 +08:00
|
|
|
#define RED "\033[31m"
|
|
|
|
#define RESET "\033[0m"
|
|
|
|
#define BUFFER 1024
|
|
|
|
#define WHITELIST_IP_NUM 1024
|
|
|
|
|
|
|
|
#define _REGION 1
|
2024-05-13 17:46:18 +08:00
|
|
|
|
|
|
|
|
2024-01-03 09:19:09 +08:00
|
|
|
#endif
|