From e63bfdce883c80ee856668fc8cccdf3f5740fb6b Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 24 Nov 2008 22:57:07 +0000 Subject: fixed syncing, config & showtables --- src/anytun.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/anytun.cpp') diff --git a/src/anytun.cpp b/src/anytun.cpp index e762e0b..012e233 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -131,6 +131,7 @@ void sender(void* p) //TODO replace mux u_int16_t mux = gOpt.getMux(); + PacketSourceEndpoint emptyEndpoint; while(1) { plain_packet.setLength(MAX_PACKET_LENGTH); @@ -158,9 +159,11 @@ void sender(void* p) continue; ConnectionParam & conn = cit->second; -// TODO test if endpoint is not valid - if(conn.remote_end_.address().to_string()==""||!conn.remote_end_.port()) + if(conn.remote_end_ == emptyEndpoint) + { + //cLog.msg(Log::PRIO_INFO) << "no remote address set"; continue; + } // generate packet-key TODO: do this only when needed conn.kd_.generate(LABEL_SATP_ENCRYPTION, conn.seq_nr_, session_key); -- cgit v1.2.3