1 #ifndef ISDN_LIB_INTERN 2 #define ISDN_LIB_INTERN 5 #include <mISDNuser/mISDNlib.h> 6 #include <mISDNuser/isdn_net.h> 7 #include <mISDNuser/l3dss1.h> 8 #include <mISDNuser/net_l3.h> 14 #ifndef MISDNUSER_VERSION_CODE 15 #error "You need a newer version of mISDNuser ..." 16 #elif MISDNUSER_VERSION_CODE < MISDNUSER_VERSION(1, 0, 3) 17 #error "You need a newer version of mISDNuser ..." 21 #define QI_ELEMENT(a) a.off 24 #ifndef mISDNUSER_HEAD_SIZE 26 #define mISDNUSER_HEAD_SIZE (sizeof(mISDNuser_head_t)) 52 msg_t *
create_l3msg(
int prim,
int mt,
int dinfo ,
int size,
int nt);
54 #if defined(AST_MISDN_ENHANCEMENTS) 56 #define MISDN_MAX_REGISTER_LINKS MAX_BCHANS 59 #define MISDN_MAX_REGISTER_LINKS 0 62 #define MAXPROCS 0x100 int upper_id
Upper layer mISDN ID (addr) (Layer 2/4)
#define MISDN_MAX_REGISTER_LINKS
char * isdn_get_info(struct isdn_msg msgs[], enum event_e event, int nt)
struct misdn_stack * get_stack_by_bc(struct misdn_bchannel *bc)
int midev
mISDN device handle returned by mISDN_open()
B channel control structure.
void * astbuf
Not used. Contents are setup but not used.
enum event_e isdn_msg_get_event(struct isdn_msg msgs[], msg_t *frm, int nt)
int pri
TRUE if ISDN-PRI (ISDN-BRI otherwise)
int l1link
TRUE if Layer 1 is UP.
msg_t * isdn_msg_build_event(struct isdn_msg msgs[], struct misdn_bchannel *bc, enum event_e event, int nt)
int lower_id
Lower layer mISDN ID (addr) (Layer 1/3)
int isdn_msg_get_index(struct isdn_msg msgs[], msg_t *frm, int nt)
int d_stid
D Channel mISDN driver stack ID (Parent stack ID)
int nt
TRUE if NT side of protocol (TE otherwise)
static struct channel_usage channels
int restart_sent
TRUE if restart has been sent to the other side after stack startup.
int l2link
TRUE if Layer 2 is UP.
msg_queue_t downqueue
Queue of Event messages to send to mISDN.
int l2upcnt
Number of consecutive times PTP Layer 2 declared down.
int ptp
TRUE if Point-To-Point(PTP) (Point-To-Multipoint(PTMP) otherwise)
msg_t * create_l3msg(int prim, int mt, int dinfo, int size, int nt)
int nt
TRUE if NT side of protocol (TE otherwise)
struct misdn_stack * next
Next stack in the list of stacks.
struct misdn_bchannel * holding
List of held channels.
int blocked
TRUE if port is blocked.
int port
Logical Layer 1 port associated with this stack.
int isdn_msg_parse_event(struct isdn_msg msgs[], msg_t *frm, struct misdn_bchannel *bc, int nt)
char * isdn_msg_get_info(struct isdn_msg msgs[], msg_t *msg, int nt)
pthread_mutex_t st_lock
Stack struct critical section lock.
int isdn_msg_get_index_by_event(struct isdn_msg msgs[], enum event_e event, int nt)