intip changed to intsa

intip changed to intsa for IPv6 use
This commit is contained in:
Vladimir Dubrovin committed 2014-05-12 01:10:42 +04:00
1 parent cce3a94f04
commit bc7ca3af09
9 files changed
+35 -19

No files matched your search

+7 -2
View File
@@ -28,6 +28,9 @@ extern "C" {
#define INVALID_SOCKET (-1)
#else
#include <winsock2.h>
#ifndef NOIPV6
#include <Ws2tcpip.h>
#endif
#define pthread_mutex_t CRITICAL_SECTION
#define pthread_mutex_init(x, y) InitializeCriticalSection(x)
#define pthread_mutex_lock(x) EnterCriticalSection(x)
@@ -330,7 +333,7 @@ struct srvparam {
int nfilters, nreqfilters, nhdrfilterscli, nhdrfilterssrv, npredatfilters, ndatfilterscli, ndatfilterssrv;
unsigned bufsize;
unsigned logdumpsrv, logdumpcli;
unsigned long intip;
struct sockaddr_storage intsa;
unsigned long extip;
pthread_mutex_t counter_mutex;
struct pollfd fds;
@@ -451,7 +454,8 @@ struct extparam {
unsigned char *logname, **archiver;
ROTATION logtype, countertype;
char * counterfile;
unsigned long intip, extip;
struct sockaddr_storage intsa;
unsigned long extip;
unsigned short intport, extport;
struct passwords *pwl;
struct auth * authenticate;
@@ -659,6 +663,7 @@ typedef enum {
TYPE_TRAFFIC,
TYPE_PORT,
TYPE_IP,
TYPE_SA,
TYPE_CIDR,
TYPE_STRING,
TYPE_DATETIME,