- switch(hh->prim)
- {
- case MGR_SHORTSTATUS | INDICATION:
- case MGR_SHORTSTATUS | CONFIRM:
- switch(hh->dinfo) {
- case SSTATUS_L2_ESTABLISHED:
- goto ss_estab;
- case SSTATUS_L2_RELEASED:
- goto ss_rel;
- }
- break;
-
- case DL_ESTABLISH | INDICATION:
- case DL_ESTABLISH | CONFIRM:
- ss_estab:
- l1l2l3_trace_header(mISDNport, NULL, hh->prim, DIRECTION_IN);
- add_trace("tei", NULL, "%d", hh->dinfo);
- end_trace();
- if (mISDNport->ptp && hh->dinfo == 0)
- {
- if (mISDNport->l2establish)
- {
- mISDNport->l2establish = 0;
- PDEBUG(DEBUG_ISDN, "the link became active before l2establish timer expiry.\n");
- }
- mISDNport->l2link = 1;
- if (mISDNport->pri);
- mISDNport->l1link = 1; /* this is a hack, we also assume L1 to be active */
- }
- break;
-
- case DL_RELEASE | INDICATION:
- case DL_RELEASE | CONFIRM:
- ss_rel:
- l1l2l3_trace_header(mISDNport, NULL, hh->prim, DIRECTION_IN);
- add_trace("tei", NULL, "%d", hh->dinfo);
- end_trace();
- if (mISDNport->ptp && hh->dinfo == 0)
- {
- mISDNport->l2link = 0;
- time(&mISDNport->l2establish);
- PDEBUG(DEBUG_ISDN, "because we are ptp, we set a l2establish timer.\n");
- }
- break;
-
- case CC_SETUP | INDICATION:
- /* creating port object */