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))