From 0ae832406f989194761528a1b8d49aa115c7fb3b Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 1 Apr 2004 20:21:06 +0000 Subject: Fixed tags Stability fixes/bounds checks UDP tunneling working for server->server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@350 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/connection.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/connection.h') diff --git a/include/connection.h b/include/connection.h index a8f7372d9..793f6d321 100644 --- a/include/connection.h +++ b/include/connection.h @@ -20,6 +20,7 @@ #define PT_SYN_ONLY 0 #define PT_ACK_ONLY 1 #define PT_SYN_WITH_DATA 2 +#define PT_KEY_EXCHANGE 3 class packet : public classbase @@ -54,13 +55,14 @@ class connection : public classbase time_t signon; time_t idle_lastmsg; time_t nping; + char internal_addr[1024]; connection(); bool CreateListener(char* host, int p); bool BeginLink(char* targethost, int port, char* password); void TerminateLink(char* targethost); - bool SendPacket(char *message, char* host, int port); - bool RecvPacket(char *message, char* host, int &prt); + bool SendPacket(char *message, char* host, int port, long ourkey); + bool RecvPacket(char *message, char* host, int &prt, long &theirkey); bool SendSYN(char* host, int port); bool SendACK(char* host, int port, int reply_id); long GenKey(); -- cgit v1.2.3