X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/093ef819f410add240cf97b72f9e7dcab5abd16c..659563a75d668130df84664e7e6b1220667cbc28:/practicas/pipi/src/test_ipout.cpp diff --git a/practicas/pipi/src/test_ipout.cpp b/practicas/pipi/src/test_ipout.cpp index ec4430f..b8e75c9 100644 --- a/practicas/pipi/src/test_ipout.cpp +++ b/practicas/pipi/src/test_ipout.cpp @@ -42,10 +42,10 @@ int main(int argc, char* argv[]) que_id = msgget(queue_id+1, IPC_CREAT | 0666); assert(que_id != -1); std::ifstream ifs(fname.c_str()); assert(ifs); Dev dev(addr, mtu, queue_id); - Dev fwque(addr, mtu, queue_id+1); + Dev fwque(addr, DEV_MAX_MTU, queue_id+1); RouteTable table(dev); add_routes(table, ifs, dev); - IPOut ipout(addr, table, fwque); + IPOut ipout(addr, table, fwque, std::cerr); std::string msg; while (std::getline(std::cin, msg)) {