iph2.do_checksum();
std::string buf((char*) &iph2, sizeof(IPHeader));
buf += data.substr(i * max_payload, max_payload);
-#ifdef DEBUG
+#ifdef DEBUG_IP
std::cout << "IPOut::send (" << ip << "): Fragmento " << i
<< " => IPHeader: " << iph2 << "\n";
std::string tmp = data.substr(i * max_payload, max_payload);
{
std::string buf = forward_que.receive();
IPHeader iph(buf);
-#ifdef DEBUG
+#ifdef DEBUG_IP
std::cout << "IPOut::forward_loop (" << ip << "): A forwardear (id "
- << iph.id << ")\n";
+ << iph.id << ", offset " << iph.offset << ")\n";
#endif
send(iph, buf.substr(iph.header_len()));
}