summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-23 05:40:49 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-23 05:40:49 +0000
commit7d14476a6e24535ad43b8304b2dc43dd5a7f67d6 (patch)
tree3a3df36191ebaad3708bb43b12176712644822d0 /src
parent75727458165561f48f3b8cf6def157269be848f7 (diff)
Correct handlong of data link status change (Andreas Eversberg)
Diffstat (limited to 'src')
-rw-r--r--src/input/misdn.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/input/misdn.c b/src/input/misdn.c
index 6b3cb6f08..d6ba63c64 100644
--- a/src/input/misdn.c
+++ b/src/input/misdn.c
@@ -142,10 +142,14 @@ static int handle_ts1_read(struct bsc_fd *bfd)
/* save the channel number in the driver private struct */
link->driver.misdn.channel = l2addr.channel;
break;
- case MPH_ACTIVATE_IND:
+ case DL_ESTABLISH_IND:
+ DEBUGP(DMI, "DL_ESTABLISH_IND: channel(%d) sapi(%d) tei(%d)\n",
+ l2addr.channel, l2addr.sapi, l2addr.tei);
ret = e1inp_event(e1i_ts, EVT_E1_TEI_UP, l2addr.tei, l2addr.sapi);
break;
- case MPH_DEACTIVATE_IND:
+ case DL_RELEASE_IND:
+ DEBUGP(DMI, "DL_RELEASE_IND: channel(%d) sapi(%d) tei(%d)\n",
+ l2addr.channel, l2addr.sapi, l2addr.tei);
ret = e1inp_event(e1i_ts, EVT_E1_TEI_DN, l2addr.tei, l2addr.sapi);
break;
case DL_DATA_IND:
@@ -153,6 +157,14 @@ static int handle_ts1_read(struct bsc_fd *bfd)
DEBUGP(DMI, "RX: %s\n", hexdump(msgb_l2(msg), ret - MISDN_HEADER_LEN));
ret = e1inp_rx_ts(e1i_ts, msg, l2addr.tei, l2addr.sapi);
break;
+ case PH_ACTIVATE_IND:
+ DEBUGP(DMI, "PH_ACTIVATE_IND: channel(%d) sapi(%d) tei(%d)\n",
+ l2addr.channel, l2addr.sapi, l2addr.tei);
+ break;
+ case PH_DEACTIVATE_IND:
+ DEBUGP(DMI, "PH_DEACTIVATE_IND: channel(%d) sapi(%d) tei(%d)\n",
+ l2addr.channel, l2addr.sapi, l2addr.tei);
+ break;
default:
break;
}