Handle MT_L2IDLE
authorKarsten Keil <kkeil@linux-pingi.de>
Wed, 28 Sep 2011 10:09:54 +0000 (12:09 +0200)
committerKarsten Keil <kkeil@linux-pingi.de>
Wed, 28 Sep 2011 10:09:54 +0000 (12:09 +0200)
MT_L2IDLE is send by the mISDNuser library when all L2 processes
are gone. We could sent a MT_L2RELEASE if we are the L2 master and
do not want permanent L2 monitoring. This would deactive L2 and also
shutdown L1.

For now we do nothing, only log a debug message.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
dss1.cpp

index e745bd3..eabb0cd 100644 (file)
--- a/dss1.cpp
+++ b/dss1.cpp
@@ -2999,6 +2999,11 @@ int stack2manager(struct mISDNport *mISDNport, unsigned int cmd, unsigned int pi
                // facility als broadcast
                break;
 
+               case MT_L2IDLE:
+               // L2 became idle - we could sent a MT_L2RELEASE if we are the L2 master
+               PDEBUG(DEBUG_ISDN, "Got L2 idle\n");
+               break;
+
                default:
                PERROR("unhandled message: cmd(0x%x) pid(0x%x)\n", cmd, pid);
                port = port_first;