|
|
@ -150,6 +150,12 @@ void demux::process_pdu(sch_pdu *pdu_msg)
|
|
|
|
dest_lch->send(pdu_msg->get()->get_sdu_ptr(), pdu_msg->get()->get_sdu_nbytes()*8);
|
|
|
|
dest_lch->send(pdu_msg->get()->get_sdu_ptr(), pdu_msg->get()->get_sdu_nbytes()*8);
|
|
|
|
Info("Sent MAC SDU len=%d bytes to lchid=%d\n",
|
|
|
|
Info("Sent MAC SDU len=%d bytes to lchid=%d\n",
|
|
|
|
pdu_msg->get()->get_sdu_nbytes(), pdu_msg->get()->get_sdu_lcid());
|
|
|
|
pdu_msg->get()->get_sdu_nbytes(), pdu_msg->get()->get_sdu_lcid());
|
|
|
|
|
|
|
|
if (sdu_handler_) {
|
|
|
|
|
|
|
|
sdu_handler_->notify_new_sdu(pdu_msg->get()->get_sdu_lcid());
|
|
|
|
|
|
|
|
Info("Notified SDU handler len=%d bytes to lchid=%d\n",
|
|
|
|
|
|
|
|
pdu_msg->get()->get_sdu_nbytes(), pdu_msg->get()->get_sdu_lcid());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Error("Getting destination channel LCID=%d\n", pdu_msg->get()->get_sdu_lcid());
|
|
|
|
Error("Getting destination channel LCID=%d\n", pdu_msg->get()->get_sdu_lcid());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -163,15 +169,6 @@ void demux::process_pdu(sch_pdu *pdu_msg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* notify handler if registred */
|
|
|
|
|
|
|
|
if (sdu_handler_) {
|
|
|
|
|
|
|
|
pdu_msg->reset();
|
|
|
|
|
|
|
|
while(pdu_msg->next()) {
|
|
|
|
|
|
|
|
if (pdu_msg->get()->is_sdu()) {
|
|
|
|
|
|
|
|
sdu_handler_->notify_new_sdu(pdu_msg->get()->get_sdu_lcid());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|