1 /* $Id: lmgr.c,v 1.7 2000/06/26 08:59:14 keil Exp $
3 * Author Karsten Keil (keil@isdn4linux.de)
5 * Layermanagement module
7 * This file is (c) under GNU PUBLIC LICENSE
11 #define __NO_VERSION__
15 error_handling_dchan(struct PStack
*st
, int Error
)
22 st
->l2
.l2tei(st
, MDL_ERROR
| REQUEST
, NULL
);
28 hisax_manager(struct PStack
*st
, int pr
, void *arg
)
33 case (MDL_ERROR
| INDICATION
):
35 HiSax_putstatus(st
->l1
.hardware
, "manager: MDL_ERROR",
37 test_bit(FLG_LAPD
, &st
->l2
.flag
) ?
38 "D-channel" : "B-channel");
39 if (test_bit(FLG_LAPD
, &st
->l2
.flag
))
40 error_handling_dchan(st
, Code
);
46 setstack_manager(struct PStack
*st
)
48 st
->ma
.layer
= hisax_manager
;