Back to index

natlog  0.91.0
conntrackmode.cc
Go to the documentation of this file.
00001 #include "natfork.ih"
00002 
00003 void NatFork::conntrackMode()
00004 {
00005     Options &options = Options::instance();
00006 
00007     char const *conntrack = options.conntrackPath().c_str();
00008 
00009     if (access(conntrack, R_OK | X_OK) != 0)
00010     {
00011         d_stdMsg << "[Fatal] Can't execute " << conntrack << endl;
00012         throw Options::FAILED;
00013     }
00014     d_mode = CONNTRACK;
00015 }