You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mISDN: Add E-Channel logging features
New prim PH_DATA_E_IND. - all E-ch frames are indicated by recv_Echannel(), which pushes E-Channel frames into dch's rqueue - if dchannel is opened with channel nr 0, no E-Channel logging is requested - if dchannel is opened with channel nr 1, E-Channel logging is requested. if layer1 does not support that, -EINVAL in return is appropriate Signed-off-by: Martin Bachem <m.bachem@gmx.de> Signed-off-by: Karsten Keil <kkeil@suse.de>
This commit is contained in:
committed by
Karsten Keil
parent
a9b61830cd
commit
1f28fa19d3
@@ -165,6 +165,25 @@ recv_Dchannel(struct dchannel *dch)
|
||||
}
|
||||
EXPORT_SYMBOL(recv_Dchannel);
|
||||
|
||||
void
|
||||
recv_Echannel(struct dchannel *ech, struct dchannel *dch)
|
||||
{
|
||||
struct mISDNhead *hh;
|
||||
|
||||
if (ech->rx_skb->len < 2) { /* at least 2 for sapi / tei */
|
||||
dev_kfree_skb(ech->rx_skb);
|
||||
ech->rx_skb = NULL;
|
||||
return;
|
||||
}
|
||||
hh = mISDN_HEAD_P(ech->rx_skb);
|
||||
hh->prim = PH_DATA_E_IND;
|
||||
hh->id = get_sapi_tei(ech->rx_skb->data);
|
||||
skb_queue_tail(&dch->rqueue, ech->rx_skb);
|
||||
ech->rx_skb = NULL;
|
||||
schedule_event(dch, FLG_RECVQUEUE);
|
||||
}
|
||||
EXPORT_SYMBOL(recv_Echannel);
|
||||
|
||||
void
|
||||
recv_Bchannel(struct bchannel *bch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user