summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-01 19:38:21 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-01 19:38:21 +0000
commita776e46990759c2315804398fa7d80cf19ef0099 (patch)
treefeed262910eb81108c760be42364d77ebcf50cd8
parentfixed some typos @ internet draft (diff)
catch destination unreachable (sender)
-rw-r--r--anytun.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 5983962..4c7b2b6 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -169,8 +169,13 @@ void* sender(void* p)
a->setKey(session_auth_key);
a->generate(encrypted_packet);
}
-
- param->src.send(encrypted_packet.getBuf(), encrypted_packet.getLength(), conn.remote_host_, conn.remote_port_);
+ try
+ {
+ param->src.send(encrypted_packet.getBuf(), encrypted_packet.getLength(), conn.remote_host_, conn.remote_port_);
+ }
+ catch (Exception e)
+ {
+ }
}
pthread_exit(NULL);
}