diff options
author | Christian Pointner <equinox@anytun.org> | 2008-05-08 22:13:18 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-05-08 22:13:18 +0000 |
commit | e718b2c47831bf89633128618515761775beda5d (patch) | |
tree | f67ed66843cfc56753786f2f5487dbabdb638f01 /src/anytun.cpp | |
parent | added own tun device implementation for linux (diff) |
first working version of linux tun device
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r-- | src/anytun.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index 0637997..8c6600b 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -455,6 +455,18 @@ int main(int argc, char* argv[]) cLog.msg(Log::PRIO_NOTICE) << "post up script '" << gOpt.getPostUpScript() << "' returned " << postup_ret; } + +// Buffer buff(u_int32_t(1600)); +// int len; +// while(1) +// { +// len = dev.read(buff.getBuf(), buff.getLength()); +// cLog.msg(Log::PRIO_NOTICE) << "read " << len << " bytes form interface " << dev.getActualName(); +// } + +// exit(0); + + if(gOpt.getChroot()) chrootAndDrop(gOpt.getChrootDir(), gOpt.getUsername()); if(gOpt.getDaemonize()) |