Remove debugging printouts from the pcap driver

pull/4/head
Paul Hollinsky 2018-09-19 13:52:12 -04:00
parent 315be76034
commit 30327dd12d
1 changed files with 0 additions and 14 deletions

View File

@ -113,20 +113,6 @@ std::vector<neodevice_t> PCAP::FindByProduct(int product) {
requestPacket.payload.push_back(Communication::ICSChecksum(requestPacket.payload)); requestPacket.payload.push_back(Communication::ICSChecksum(requestPacket.payload));
requestPacket.payload.insert(requestPacket.payload.begin(), 0xAA); requestPacket.payload.insert(requestPacket.payload.begin(), 0xAA);
// Test cases
// std::cout << std::endl << "We would send:" << std::endl << std::hex;
// for(auto byte : requestPacket.getBytestream()) {
// std::cout << (int)byte << ' ';
// }
// std::cout << std::dec << std::endl;
// EthernetPacket bsPacket(requestPacket.getBytestream());
// std::cout << std::endl << "We would rx:" << std::endl << std::hex;
// for(auto byte : bsPacket.getBytestream()) {
// std::cout << (int)byte << ' ';
// }
// std::cout << std::dec << std::endl;
auto bs = requestPacket.getBytestream(); auto bs = requestPacket.getBytestream();
pcap.sendpacket(interface.fp, bs.data(), (int)bs.size()); pcap.sendpacket(interface.fp, bs.data(), (int)bs.size());