14 #include <senf/PPI.hh> 18 #include <senf/Ext/NetEmu/WLAN/MmapSocketSourceRadioTap.hh> 29 std::cerr <<
"usage: wlanMon2Eth <monitor_iface> <tap_iface> <reorder|no-reorder>" << std::endl;
33 int main(
int argc,
char const * argv[])
39 std::cerr <<
"you must be root!" << std::endl;
48 srcSocket.blocking(
false);
49 senf::MmapSocketSourceRadioTap source (srcSocket, 1024);
56 if (std::string(argv[3]) ==
"no-reorder") {
57 filter.reorderPackets(
false);
59 if (std::string(argv[3]) ==
"reorder") {
60 filter.reorderPackets(
true);
66 senf::ppi::connect(source, filter);
67 senf::ppi::connect(filter, sink);
MonitorDataFilter header.
void print_usage_and_exit()
virtual void terminate() const
int run(int argc, char const *argv[])
int main(int argc, char const *argv[])
ProtocolClientSocketHandle< TapSocketProtocol > TapSocketHandle
ProtocolClientSocketHandle< PacketSocketProtocol > PacketSocketHandle
void handleSignal(siginfo_t const &)