- /* if process id and layer 3 id matches */
-// if (pid == pdss1->p_m_d_l3id)
- pdss1->message_isdn(cmd, pid, l3m);
+ /* if we have child pid and got different child pid message, ignore */
+ if (mISDNport->ntmode
+ && (pid & MISDN_PID_CRTYPE_MASK) != MISDN_PID_MASTER
+ && (pdss1->p_m_d_l3id & MISDN_PID_CRTYPE_MASK) != MISDN_PID_MASTER
+ && pid != pdss1->p_m_d_l3id)
+ return(0);
+
+ /* process message */
+ pdss1->message_isdn(cmd, pid, l3m);