43 #define FRAME_RELAY_MTU 1600
45 #define FRAME_RELAY_SDU (FRAME_RELAY_MTU - 2)
struct osmo_fr_link * osmo_fr_link_alloc(struct osmo_fr_network *net, enum osmo_fr_role role, const char *name)
Definition: frame_relay.c:927
void osmo_fr_dlc_free(struct osmo_fr_dlc *dlc)
Definition: frame_relay.c:992
struct osmo_fr_dlc * osmo_fr_dlc_by_dlci(struct osmo_fr_link *link, uint16_t dlci)
Definition: frame_relay.c:1007
int osmo_fr_tx_dlc(struct msgb *msg)
Definition: frame_relay.c:834
osmo_fr_role
Definition: frame_relay.h:37
@ FR_ROLE_NETWORK_EQUIPMENT
Definition: frame_relay.h:39
@ FR_ROLE_USER_EQUIPMENT
Definition: frame_relay.h:38
static const char * osmo_fr_role_str(enum osmo_fr_role role)
Definition: frame_relay.h:49
const struct value_string osmo_fr_role_names[]
Definition: frame_relay.c:151
void osmo_fr_link_free(struct osmo_fr_link *link)
Definition: frame_relay.c:955
struct osmo_fr_network * osmo_fr_network_alloc(void *ctx)
Definition: frame_relay.c:898
int osmo_fr_rx(struct msgb *msg)
Definition: frame_relay.c:769
struct osmo_fr_dlc * osmo_fr_dlc_alloc(struct osmo_fr_link *link, uint16_t dlci)
Definition: frame_relay.c:974
uint8_t data[0]
variable-length payload
Definition: gsm_08_16.h:1
const char * get_value_string(const struct value_string *vs, uint32_t val)
Definition: frame_relay.h:107
bool add
Definition: frame_relay.h:117
bool state_send
Definition: frame_relay.h:123
void(* status_cb)(struct osmo_fr_dlc *dlc, void *cb_data, bool active)
Definition: frame_relay.h:128
struct osmo_fr_link * link
Definition: frame_relay.h:110
bool del
Definition: frame_relay.h:119
void * cb_data
Definition: frame_relay.h:129
struct llist_head list
Definition: frame_relay.h:109
bool active
Definition: frame_relay.h:115
int(* rx_cb)(void *cb_data, struct msgb *msg)
Definition: frame_relay.h:126
uint16_t dlci
Definition: frame_relay.h:112
Definition: frame_relay.h:66
enum osmo_fr_role role
Definition: frame_relay.h:70
unsigned int polling_count
Definition: frame_relay.h:85
uint8_t last_tx_seq
Definition: frame_relay.h:80
bool state
Definition: frame_relay.h:90
struct osmo_fr_network * net
Definition: frame_relay.h:69
void(* status_cb)(struct osmo_fr_link *link, void *cb_data, bool active)
Definition: frame_relay.h:102
unsigned int err_count
Definition: frame_relay.h:86
uint8_t last_rx_seq
Definition: frame_relay.h:76
void * cb_data
Definition: frame_relay.h:103
const char * name
Definition: frame_relay.h:72
struct llist_head dlc_list
Definition: frame_relay.h:93
struct llist_head list
Definition: frame_relay.h:68
struct osmo_timer_list t392
Definition: frame_relay.h:83
int(* tx_cb)(void *data, struct msgb *msg)
Definition: frame_relay.h:100
int(* unknown_dlc_rx_cb)(void *cb_data, struct msgb *msg)
Definition: frame_relay.h:96
unsigned int succeed
Definition: frame_relay.h:87
void * unknown_dlc_rx_cb_data
Definition: frame_relay.h:97
struct osmo_timer_list t391
Definition: frame_relay.h:82
uint8_t expected_rep
Definition: frame_relay.h:89
Definition: frame_relay.h:53
struct llist_head links
Definition: frame_relay.h:54
unsigned int n392
Definition: frame_relay.h:57
unsigned int n391
Definition: frame_relay.h:56
unsigned int n393
Definition: frame_relay.h:58
struct osmo_tdef * T_defs
Definition: frame_relay.h:60