X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/093ef819f410add240cf97b72f9e7dcab5abd16c..6758589f5ff68b1775d5a83b01d7ac49f1b612ef:/practicas/pipi/src/test_ipin.cpp?ds=inline diff --git a/practicas/pipi/src/test_ipin.cpp b/practicas/pipi/src/test_ipin.cpp index a3c8e5f..eb15d0f 100644 --- a/practicas/pipi/src/test_ipin.cpp +++ b/practicas/pipi/src/test_ipin.cpp @@ -35,8 +35,8 @@ int main(int argc, char* argv[]) Dev dev(addr, mtu, queue_id); int que_id = msgget(queue_id+1, IPC_CREAT | 0666); assert(que_id != -1); - Dev fwque(addr, mtu, queue_id+1); - IPIn ipin(addr, dev, fwque, router, forward); + Dev fwque(addr, DEV_MAX_MTU, queue_id+1); + IPIn ipin(addr, dev, fwque, router, forward, std::cerr); struct msqid_ds minfo; for (msgctl(dev.que_id, IPC_STAT, &minfo); minfo.msg_qnum; msgctl(dev.que_id, IPC_STAT, &minfo))