diff options
author | Erwin Nindl <nine@wirdorange.org> | 2008-02-27 21:21:05 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2008-02-27 21:21:05 +0000 |
commit | 63cc38e6bd6329dfe0021adc2f8609bf7819fc49 (patch) | |
tree | 07bceb456776f1f0b98dcc53a843097f612f37ef /anytun.cpp | |
parent | removed debug statements (diff) |
added mux to options
Diffstat (limited to 'anytun.cpp')
-rw-r--r-- | anytun.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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)) { |