From: Leandro Lucarella Date: Thu, 1 Jun 2006 15:19:16 +0000 (+0000) Subject: Bugfix, se pone bien la MAC del dispositivo. X-Git-Tag: svn_import~66 X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/commitdiff_plain/164664f3701af86e535865afc21cbcd152a7456f?ds=sidebyside Bugfix, se pone bien la MAC del dispositivo. --- diff --git a/practicas/pipi/src/test_ipin.cpp b/practicas/pipi/src/test_ipin.cpp index 750ffd4..7b56b11 100644 --- a/practicas/pipi/src/test_ipin.cpp +++ b/practicas/pipi/src/test_ipin.cpp @@ -1,6 +1,7 @@ #include "ipin.h" #include "ipaddr.h" +#include "dev.h" #include #include #include @@ -10,8 +11,9 @@ int main() { - Dev dev(4321); - IPIn ipin(IPAddr("10.10.10.1"), dev); + IPAddr addr("10.10.10.1"); + Dev dev(addr); + IPIn ipin(addr, dev); struct msqid_ds minfo; for (msgctl(dev.que_id, IPC_STAT, &minfo); minfo.msg_qnum; msgctl(dev.que_id, IPC_STAT, &minfo))