summaryrefslogtreecommitdiff
path: root/anytun.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2008-02-27 21:21:05 +0000
committerErwin Nindl <nine@wirdorange.org>2008-02-27 21:21:05 +0000
commit63cc38e6bd6329dfe0021adc2f8609bf7819fc49 (patch)
tree07bceb456776f1f0b98dcc53a843097f612f37ef /anytun.cpp
parentremoved debug statements (diff)
added mux to options
Diffstat (limited to 'anytun.cpp')
-rw-r--r--anytun.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/anytun.cpp b/anytun.cpp
index 66568c0..a408019 100644
--- a/anytun.cpp
+++ b/anytun.cpp
@@ -142,7 +142,7 @@ void* sender(void* p)
Buffer session_auth_key(u_int32_t(SESSION_KEYLEN_AUTH)); // TODO: hardcoded size
//TODO replace mux
- u_int16_t mux = 0;
+ u_int16_t mux = gOpt.getMux();
while(1)
{
plain_packet.setLength(MAX_PACKET_LENGTH);
@@ -335,6 +335,22 @@ bool initLibGCrypt()
int main(int argc, char* argv[])
{
+/*
+
+ char INPUT[] = "101232565621f6e77f56";
+
+ std::string input(INPUT, sizeof(INPUT));
+
+ Buffer b(input);
+
+ std::cout << " b:" << b.getHexDump() << std::endl;
+
+
+
+
+ exit(0);
+*/
+
std::cout << "anytun - secure anycast tunneling protocol" << std::endl;
if(!gOpt.parse(argc, argv))
{