17 #include <senf/PPI.hh> 43 int main(
int argc,
char const * argv[])
49 if (!configuration.
parse( argc, argv)) {
57 handle->protocol().sndbuf( 128000);
58 if (dup2( handle->fd(), fileno(stdout)) == -1) {
74 fs.open( (std::string(
"/sys/class/net/") + configuration.
device + std::string(
"/address")).c_str());
85 socket.protocol().rcvbuf(4096);
107 senf::ppi::connect( *source, filter);
108 senf::ppi::connect( filter, analyzer);
117 unsigned dropped (socket.protocol().rxQueueDropped());
void dump(std::ostream &os) const
TSFTHistogram & tsftHistogram()
MonitorDataFilter header.
static void logToStderr()
bool start(senf::MACAddress const &src)
senf::INet4SocketAddress logDestination
virtual void terminate() const
static MACAddress from_string(std::string const &s)
int main(int argc, char const *argv[])
int run(int argc, char const *argv[])
bool parse(int argc, char const *argv[])
ProtocolClientSocketHandle< ConnectedMMapPacketSocketProtocol< QueueReadPolicy > > ConnectedMMapReadPacketSocketHandle
ProtocolClientSocketHandle< TCPv4SocketProtocol > TCPv4ClientSocketHandle
std::string message() const
MonitorDataFilterStatistics stats()
static void filterMonitorTxFrames(BSDSocket sock)
void handleSignal(siginfo_t const &)
void dump(std::ostream &os) const