1 /* $Id: lmgr.c,v 1.1.1.1 2005/04/11 02:50:23 jack Exp $
3 * Layermanagement module
6 * Copyright by Karsten Keil <keil@isdn4linux.de>
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
13 #define __NO_VERSION__
17 error_handling_dchan(struct PStack *st, int Error)
24 st->l2.l2tei(st, MDL_ERROR | REQUEST, NULL);
30 hisax_manager(struct PStack *st, int pr, void *arg)
35 case (MDL_ERROR | INDICATION):
37 HiSax_putstatus(st->l1.hardware, "manager: MDL_ERROR",
39 test_bit(FLG_LAPD, &st->l2.flag) ?
40 "D-channel" : "B-channel");
41 if (test_bit(FLG_LAPD, &st->l2.flag))
42 error_handling_dchan(st, Code);
48 setstack_manager(struct PStack *st)
50 st->ma.layer = hisax_manager;