Loading system/vendor_libs/test_vendor_lib/model/devices/sniffer.cc +4 −2 Original line number Original line Diff line number Diff line Loading @@ -47,8 +47,10 @@ void Sniffer::IncomingPacket(model::packets::LinkLayerPacketView packet) { if (!match_source && !match_dest) { if (!match_source && !match_dest) { return; return; } } LOG_INFO("%s %s -> %s (Type %d)", (match_source ? (match_dest ? "<->" : "<--") : "-->"), source.ToString().c_str(), LOG_INFO("%s %s -> %s (Type %s)", dest.ToString().c_str(), static_cast<int>(packet.GetType())); (match_source ? (match_dest ? "<->" : "<--") : "-->"), source.ToString().c_str(), dest.ToString().c_str(), model::packets::PacketTypeText(packet.GetType()).c_str()); } } } // namespace test_vendor_lib } // namespace test_vendor_lib Loading
system/vendor_libs/test_vendor_lib/model/devices/sniffer.cc +4 −2 Original line number Original line Diff line number Diff line Loading @@ -47,8 +47,10 @@ void Sniffer::IncomingPacket(model::packets::LinkLayerPacketView packet) { if (!match_source && !match_dest) { if (!match_source && !match_dest) { return; return; } } LOG_INFO("%s %s -> %s (Type %d)", (match_source ? (match_dest ? "<->" : "<--") : "-->"), source.ToString().c_str(), LOG_INFO("%s %s -> %s (Type %s)", dest.ToString().c_str(), static_cast<int>(packet.GetType())); (match_source ? (match_dest ? "<->" : "<--") : "-->"), source.ToString().c_str(), dest.ToString().c_str(), model::packets::PacketTypeText(packet.GetType()).c_str()); } } } // namespace test_vendor_lib } // namespace test_vendor_lib