X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/63516fdd4cb64b01971750be1d29d7244b1f9e5e..f48d95822c7810a45daf26854de7262ccc20a940:/practicas/pipi/src/ipin.cpp diff --git a/practicas/pipi/src/ipin.cpp b/practicas/pipi/src/ipin.cpp index 1ff0560..7cb5abc 100644 --- a/practicas/pipi/src/ipin.cpp +++ b/practicas/pipi/src/ipin.cpp @@ -41,7 +41,7 @@ std::string IPIn::recv(uint8_t& proto, IPAddr& src, IPAddr& dst) continue; } IPHeader iph(buf); -#ifdef DEBUG +#ifdef DEBUG_IP std::cout << "IPIn::recv (" << ip << "): IPHeader: " << iph << "\n"; std::string tmp = buf.substr(iph.header_len()); std::cout << "\tdata (" << tmp.size() << ") = " << tmp << "\n"; @@ -99,7 +99,7 @@ std::string IPIn::recv(uint8_t& proto, IPAddr& src, IPAddr& dst) //TODO chequear que los fragmentos estén todos data += i->second; } -#ifdef DEBUG +#ifdef DEBUG_IP std::cout << "IPIn::recv (" << ip << "): Paquete completo: data = '" << data << "'\n"; #endif