|
static void | lapd_t200_cb (void *data) |
|
static void | lapd_t203_cb (void *data) |
|
static int | lapd_send_i (struct lapd_datalink *dl, int line, bool rts) |
|
static int | lapd_est_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
struct msgb * | lapd_msgb_alloc (int length, const char *name) |
|
static uint8_t | do_mod (uint8_t x, uint8_t m) |
|
static uint8_t | inc_mod (uint8_t x, uint8_t m) |
|
static uint8_t | add_mod (uint8_t x, uint8_t y, uint8_t m) |
|
static uint8_t | sub_mod (uint8_t x, uint8_t y, uint8_t m) |
|
static void | lapd_dl_flush_send (struct lapd_datalink *dl) |
|
static void | lapd_dl_flush_hist (struct lapd_datalink *dl) |
|
static void | lapd_dl_flush_tx_queue (struct lapd_datalink *dl) |
|
static void | lapd_dl_flush_tx (struct lapd_datalink *dl) |
|
static const char * | lapd_state_name (enum lapd_state state) |
|
static void | lapd_start_t200 (struct lapd_datalink *dl) |
|
int | lapd_t200_timeout (struct lapd_datalink *dl) |
| Handle timeout condition of T200 in RTS mode. More...
|
|
static void | lapd_start_t203 (struct lapd_datalink *dl) |
|
static void | lapd_stop_t200 (struct lapd_datalink *dl) |
|
static bool | lapd_is_t200_started (struct lapd_datalink *dl) |
|
static void | lapd_stop_t203 (struct lapd_datalink *dl) |
|
static void | lapd_dl_newstate (struct lapd_datalink *dl, uint32_t state) |
|
void | lapd_dl_init2 (struct lapd_datalink *dl, uint8_t k, uint8_t v_range, int maxf, const char *name) |
| Initialize LAPD datalink instance and allocate history. More...
|
|
void | lapd_dl_init (struct lapd_datalink *dl, uint8_t k, uint8_t v_range, int maxf) |
| Initialize LAPD datalink instance and allocate history. More...
|
|
void | lapd_dl_set_name (struct lapd_datalink *dl, const char *name) |
|
void | lapd_dl_reset (struct lapd_datalink *dl) |
|
int | lapd_dl_set_flags (struct lapd_datalink *dl, unsigned int flags) |
| Set lapd_flags to change behaviour. More...
|
|
void | lapd_dl_exit (struct lapd_datalink *dl) |
|
int | lapd_set_mode (struct lapd_datalink *dl, enum lapd_mode mode) |
| Set the lapdm_mode of a LAPDm entity. More...
|
|
static int | send_dl_l3 (uint8_t prim, uint8_t op, struct lapd_msg_ctx *lctx, struct msgb *msg) |
|
static int | send_dl_simple (uint8_t prim, uint8_t op, struct lapd_msg_ctx *lctx) |
|
static int | mdl_error (uint8_t cause, struct lapd_msg_ctx *lctx) |
|
static int | lapd_send_ua (struct lapd_msg_ctx *lctx, uint8_t len, uint8_t *data) |
|
static int | lapd_send_dm (struct lapd_msg_ctx *lctx) |
|
static int | lapd_send_rr (struct lapd_msg_ctx *lctx, uint8_t f_bit, uint8_t cmd) |
|
static int | lapd_send_rnr (struct lapd_msg_ctx *lctx, uint8_t f_bit, uint8_t cmd) |
|
static int | lapd_send_rej (struct lapd_msg_ctx *lctx, uint8_t f_bit) |
|
static int | lapd_send_resend (struct lapd_datalink *dl) |
|
static int | lapd_reestablish (struct lapd_datalink *dl) |
|
static int | lapd_acknowledge (struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_sabm (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_dm (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_ui (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_disc (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_ua (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u_frmr (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_u (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_s (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rx_i (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
int | lapd_ph_data_ind (struct msgb *msg, struct lapd_msg_ctx *lctx) |
|
int | lapd_ph_rts_ind (struct lapd_msg_ctx *lctx) |
| Enqueue next LAPD frame and run pending T200. More...
|
|
static int | lapd_udata_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
static void | msg_to_tx_hist (struct lapd_history *tx_hist, const struct msgb *msg, int length, int more) |
|
static void | msg_to_tx_hist0 (struct lapd_datalink *dl, const struct msgb *msg) |
|
static int | lapd_data_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
static int | lapd_susp_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
static int | lapd_res_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rel_req (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
static int | lapd_rel_req_idle (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
int | lapd_recv_dlsap (struct osmo_dlsap_prim *dp, struct lapd_msg_ctx *lctx) |
|
LAPD core implementation.