summaryrefslogtreecommitdiff
path: root/anyctr.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2008-02-29 14:29:00 +0000
committerErwin Nindl <nine@wirdorange.org>2008-02-29 14:29:00 +0000
commit23acebd364d21086d73e2cf5fcb6f23a9d6eddcb (patch)
tree09fa7bcb4435be41c7dfb5b2aac20e3c9f26be17 /anyctr.cpp
parentrouting (diff)
output route on anytun-showtables;
cl option to anyctr
Diffstat (limited to 'anyctr.cpp')
-rw-r--r--anyctr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/anyctr.cpp b/anyctr.cpp
index 2e4e9c2..61c238b 100644
--- a/anyctr.cpp
+++ b/anyctr.cpp
@@ -64,8 +64,9 @@ void createConnection(const std::string & remote_host, u_int16_t remote_port, Co
cl.addConnection( connparam, mux );
NetworkAddress addr( ipv4, gOpt.getIfconfigParamRemoteNetmask().c_str() );
NetworkPrefix prefix( addr );
- // TODO configurierbar machen!!!
- prefix.setNetworkPrefixLength(32);
+
+ prefix.setNetworkPrefixLength(gOpt.getNetworkPrefixLength());
+
gRoutingTable.addRoute( prefix, mux );
std::ostringstream sout;
boost::archive::text_oarchive oa( sout );