diff options
author | Erwin Nindl <nine@wirdorange.org> | 2008-02-29 14:29:00 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2008-02-29 14:29:00 +0000 |
commit | 23acebd364d21086d73e2cf5fcb6f23a9d6eddcb (patch) | |
tree | 09fa7bcb4435be41c7dfb5b2aac20e3c9f26be17 /anyctr.cpp | |
parent | routing (diff) |
output route on anytun-showtables;
cl option to anyctr
Diffstat (limited to 'anyctr.cpp')
-rw-r--r-- | anyctr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 ); |