summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-24 22:57:07 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-24 22:57:07 +0000
commite63bfdce883c80ee856668fc8cccdf3f5740fb6b (patch)
treed5121fae7e49a4821ce7325397955cc81267c15a /src/anytun.cpp
parentfixed sync deletes connection param (diff)
fixed syncing, config & showtables
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp7
1 files changed, 5 insertions, 2 deletions
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);