Back to index

natlog  0.91.0
conntrack1.cc
Go to the documentation of this file.
00001 #include "conntrack.ih"
00002 
00003 Conntrack::Conntrack(ostream &stdMsg)
00004 :
00005     d_options(Options::instance()),
00006     d_conntrack(Process::COUT | Process::CERR, d_options.conntrackPath() + 
00007                                 " -p tcp -E -n -o timestamp -e NEW,DESTROY"),
00008     d_stdMsg(stdMsg)
00009 {
00010     if (access("/proc/net/ip_conntrack", R_OK) != 0)
00011         throw Errno(1, "[Fatal] ") << "Cannot read /proc/net/ip_conntrack";
00012 
00013     imsg << "Calling `" << d_options.conntrackPath() + 
00014             " -p tcp -E -n -o timestamp -e NEW,DESTROY'" << endl;
00015 }