#include <isdn_lib_intern.h>
Data Fields | |
int | b_num |
int | b_stids [MAX_BCHANS+1] |
B Channel mISDN driver stack IDs (Child stack IDs) | |
struct misdn_bchannel | bc [MAX_BCHANS+1] |
B Channel record pool array. | |
struct misdn_bchannel * | bc_list |
int | blocked |
TRUE if port is blocked. | |
int | busy |
int | channels [MAX_BCHANS+1] |
Array of B channels in use (a[0] = B1). TRUE if B channel in use. | |
int | d_stid |
D Channel mISDN driver stack ID (Parent stack ID) | |
msg_queue_t | downqueue |
Queue of Event messages to send to mISDN. | |
struct misdn_bchannel * | holding |
List of held channels. | |
int | l1link |
TRUE if Layer 1 is UP. | |
int | l2_id |
time_t | l2establish |
int | l2link |
TRUE if Layer 2 is UP. | |
int | l2upcnt |
Number of consecutive times PTP Layer 2 declared down. | |
int | lower_id |
Lower layer mISDN ID (addr) (Layer 1/3) | |
manager_t | mgr |
int | midev |
mISDN device handle returned by mISDN_open() | |
struct misdn_stack * | next |
Next stack in the list of stacks. | |
net_stack_t | nst |
pthread_mutex_t | nstlock |
int | nt |
TRUE if NT side of protocol (TE otherwise) | |
int | port |
Logical Layer 1 port associated with this stack. | |
int | pri |
TRUE if ISDN-PRI (ISDN-BRI otherwise) | |
int | procids [0x100+1] |
CR Process ID allocation table. TRUE if ID allocated. | |
int | ptp |
TRUE if Point-To-Point(PTP) (Point-To-Multipoint(PTMP) otherwise) | |
int | restart_sent |
TRUE if restart has been sent to the other side after stack startup. | |
pthread_mutex_t | st_lock |
Stack struct critical section lock. | |
int | upper_id |
Upper layer mISDN ID (addr) (Layer 2/4) | |
msg_queue_t | upqueue |
Definition at line 57 of file isdn_lib_intern.h.
int b_num |
/brief Number of B channels supported by this port
Definition at line 70 of file isdn_lib_intern.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_addr(), find_bc_by_channel(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), manager_find_bc_by_pid(), misdn_lib_destroy(), misdn_lib_get_free_bc(), misdn_lib_init(), misdn_lib_send_restart(), setup_bc(), and stack_init().
int b_stids[MAX_BCHANS+1] |
B Channel mISDN driver stack IDs (Child stack IDs)
Definition at line 73 of file isdn_lib_intern.h.
Referenced by setup_bc(), and stack_init().
struct misdn_bchannel bc[MAX_BCHANS+1] |
B Channel record pool array.
Definition at line 124 of file isdn_lib_intern.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_addr(), find_bc_by_channel(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), handle_event_nt(), manager_find_bc_by_pid(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_free_bc(), misdn_lib_init(), misdn_lib_send_restart(), and setup_bc().
struct misdn_bchannel* bc_list |
Definition at line 126 of file isdn_lib_intern.h.
int blocked |
TRUE if port is blocked.
Definition at line 90 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), misdn_lib_get_free_bc(), misdn_lib_is_port_blocked(), misdn_lib_port_block(), misdn_lib_port_unblock(), misdn_lib_port_up(), and misdn_lib_reinit_nt_stack().
int busy |
Definition at line 118 of file isdn_lib_intern.h.
int channels[MAX_BCHANS+1] |
Array of B channels in use (a[0] = B1). TRUE if B channel in use.
Definition at line 129 of file isdn_lib_intern.h.
Referenced by dump_chan_list(), empty_chan_in_stack(), find_free_chan_in_stack(), set_chan_in_stack(), and stack_init().
int d_stid |
D Channel mISDN driver stack ID (Parent stack ID)
Definition at line 67 of file isdn_lib_intern.h.
Referenced by misdn_lib_reinit_nt_stack(), and stack_init().
msg_queue_t downqueue |
Queue of Event messages to send to mISDN.
Definition at line 116 of file isdn_lib_intern.h.
Referenced by manager_event_handler(), misdn_lib_send_event(), and stack_init().
struct misdn_bchannel* holding |
List of held channels.
Definition at line 132 of file isdn_lib_intern.h.
Referenced by stack_holder_add(), stack_holder_find(), stack_holder_remove(), and stack_init().
int l1link |
TRUE if Layer 1 is UP.
Definition at line 98 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), handle_err(), handle_event_nt(), misdn_lib_get_port_up(), misdn_lib_isdn_l1watcher(), misdn_lib_port_up(), misdn_lib_send_event(), and stack_init().
int l2_id |
Definition at line 81 of file isdn_lib_intern.h.
time_t l2establish |
Definition at line 95 of file isdn_lib_intern.h.
int l2link |
TRUE if Layer 2 is UP.
Definition at line 93 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), handle_err(), handle_event_nt(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), and stack_init().
int l2upcnt |
Number of consecutive times PTP Layer 2 declared down.
Definition at line 79 of file isdn_lib_intern.h.
Referenced by handle_event_nt().
int lower_id |
Lower layer mISDN ID (addr) (Layer 1/3)
Definition at line 84 of file isdn_lib_intern.h.
Referenced by misdn_lib_get_l1_down(), misdn_lib_reinit_nt_stack(), stack_destroy(), and stack_init().
manager_t mgr |
Definition at line 60 of file isdn_lib_intern.h.
Referenced by find_stack_by_mgr(), misdn_lib_reinit_nt_stack(), and stack_init().
int midev |
mISDN device handle returned by mISDN_open()
Definition at line 104 of file isdn_lib_intern.h.
Referenced by clean_up_bc(), handle_bchan(), manager_bchannel_activate(), manager_bchannel_deactivate(), misdn_lib_destroy(), misdn_lib_get_l1_down(), misdn_lib_get_l1_up(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_get_short_status(), misdn_lib_init(), misdn_lib_tx2misdn_frm(), setup_bc(), stack_destroy(), and stack_init().
struct misdn_stack* next |
Next stack in the list of stacks.
Definition at line 135 of file isdn_lib_intern.h.
Referenced by find_bc_by_addr(), find_bc_by_confid(), find_stack_by_addr(), find_stack_by_mgr(), find_stack_by_port(), get_show_stack_details(), get_stack_by_bc(), handle_timers(), manager_event_handler(), manager_find_bc_by_pid(), misdn_dump_chanlist(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_free_bc(), misdn_lib_get_maxchans(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_init(), misdn_lib_is_port_blocked(), misdn_lib_is_ptp(), misdn_lib_isdn_l1watcher(), misdn_lib_nt_keepcalls(), misdn_lib_port_block(), misdn_lib_port_is_nt(), misdn_lib_port_is_pri(), misdn_lib_port_unblock(), and misdn_lib_port_up().
net_stack_t nst |
is first element because &nst equals &mISDNlist
Definition at line 59 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_nt_keepcalls(), misdn_lib_reinit_nt_stack(), stack_destroy(), and stack_init().
pthread_mutex_t nstlock |
Definition at line 61 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), stack_destroy(), and stack_init().
int nt |
TRUE if NT side of protocol (TE otherwise)
Definition at line 107 of file isdn_lib_intern.h.
Referenced by build_alerting(), build_connect(), build_connect_acknowledge(), build_disconnect(), build_facility(), build_hold(), build_hold_acknowledge(), build_hold_reject(), build_information(), build_notify(), build_proceeding(), build_progress(), build_release(), build_release_complete(), build_restart(), build_resume(), build_resume_acknowledge(), build_resume_reject(), build_retrieve(), build_retrieve_acknowledge(), build_retrieve_reject(), build_setup(), build_setup_acknowledge(), build_status(), build_status_enquiry(), build_suspend(), build_suspend_acknowledge(), build_suspend_reject(), build_timeout(), build_user_information(), create_process(), get_show_stack_details(), handle_cr(), handle_event(), handle_event_nt(), init_bc(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_log_ies(), misdn_lib_port_is_nt(), misdn_lib_port_restart(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_make_dummy(), release_cr(), stack_destroy(), and stack_init().
int port |
Logical Layer 1 port associated with this stack.
Definition at line 121 of file isdn_lib_intern.h.
Referenced by clean_up_bc(), create_process(), dump_chan_list(), empty_chan_in_stack(), find_free_chan_in_stack(), find_stack_by_port(), get_show_stack_details(), get_stack_by_bc(), handle_bchan(), handle_cr(), handle_event(), handle_event_nt(), init_bc(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_ec_disable(), manager_ec_enable(), manager_event_handler(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_free_bc(), misdn_lib_get_l1_down(), misdn_lib_get_maxchans(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_is_port_blocked(), misdn_lib_is_ptp(), misdn_lib_isdn_l1watcher(), misdn_lib_log_ies(), misdn_lib_port_block(), misdn_lib_port_is_nt(), misdn_lib_port_is_pri(), misdn_lib_port_restart(), misdn_lib_port_unblock(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_lib_tx2misdn_frm(), misdn_make_dummy(), parse_restart(), release_cr(), set_chan_in_stack(), setup_bc(), stack_holder_add(), stack_holder_find(), stack_holder_remove(), and stack_init().
int pri |
TRUE if ISDN-PRI (ISDN-BRI otherwise)
Definition at line 110 of file isdn_lib_intern.h.
Referenced by create_process(), dec_ie_channel_id(), enc_ie_channel_id(), find_free_chan_in_stack(), handle_event(), init_bc(), misdn_lib_get_free_bc(), misdn_lib_get_maxchans(), misdn_lib_port_is_pri(), misdn_lib_reinit_nt_stack(), and stack_init().
int procids[0x100+1] |
CR Process ID allocation table. TRUE if ID allocated.
Definition at line 113 of file isdn_lib_intern.h.
Referenced by create_process(), handle_event_nt(), and release_cr().
int ptp |
TRUE if Point-To-Point(PTP) (Point-To-Multipoint(PTMP) otherwise)
Definition at line 76 of file isdn_lib_intern.h.
Referenced by create_process(), get_show_stack_details(), handle_event(), handle_event_nt(), misdn_lib_get_free_bc(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_is_ptp(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), and stack_init().
int restart_sent |
TRUE if restart has been sent to the other side after stack startup.
Definition at line 101 of file isdn_lib_intern.h.
Referenced by handle_event_nt().
pthread_mutex_t st_lock |
Stack struct critical section lock.
Definition at line 64 of file isdn_lib_intern.h.
Referenced by find_free_chan_in_stack(), misdn_lib_get_free_bc(), stack_destroy(), and stack_init().
int upper_id |
Upper layer mISDN ID (addr) (Layer 2/4)
Definition at line 87 of file isdn_lib_intern.h.
Referenced by create_process(), find_stack_by_addr(), handle_event_nt(), misdn_lib_get_l1_up(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_get_port_info(), misdn_lib_get_short_status(), misdn_lib_port_restart(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), release_cr(), stack_destroy(), and stack_init().
msg_queue_t upqueue |
Definition at line 117 of file isdn_lib_intern.h.
Referenced by manager_event_handler(), and stack_init().