From 164664f3701af86e535865afc21cbcd152a7456f Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 1 Jun 2006 15:19:16 +0000 Subject: [PATCH] Bugfix, se pone bien la MAC del dispositivo. --- practicas/pipi/src/test_ipin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) -- 2.43.0