44#define FRAME_RELAY_MTU 1600
46#define FRAME_RELAY_SDU (FRAME_RELAY_MTU - 2)
struct osmo_fr_dlc * osmo_fr_dlc_alloc(struct osmo_fr_link *link, uint16_t dlci)
Definition: frame_relay.c:974
static const char * osmo_fr_role_str(enum osmo_fr_role role)
Definition: frame_relay.h:50
void osmo_fr_network_dump_vty(struct vty *vty, const struct osmo_fr_network *net)
Definition: frame_relay.c:1041
void osmo_fr_dlc_free(struct osmo_fr_dlc *dlc)
Definition: frame_relay.c:992
int osmo_fr_tx_dlc(struct msgb *msg)
Definition: frame_relay.c:834
osmo_fr_role
Definition: frame_relay.h:38
@ FR_ROLE_NETWORK_EQUIPMENT
Definition: frame_relay.h:40
@ FR_ROLE_USER_EQUIPMENT
Definition: frame_relay.h:39
const struct value_string osmo_fr_role_names[]
Definition: frame_relay.c:151
struct osmo_fr_network * osmo_fr_network_alloc(void *ctx)
Definition: frame_relay.c:898
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_link_free(struct osmo_fr_link *link)
Definition: frame_relay.c:955
void osmo_fr_network_free(struct osmo_fr_network *net)
Definition: frame_relay.c:914
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_rx(struct msgb *msg)
Definition: frame_relay.c:769
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:108
bool add
Definition: frame_relay.h:118
bool state_send
Definition: frame_relay.h:124
void(* status_cb)(struct osmo_fr_dlc *dlc, void *cb_data, bool active)
Definition: frame_relay.h:129
struct osmo_fr_link * link
Definition: frame_relay.h:111
bool del
Definition: frame_relay.h:120
void * cb_data
Definition: frame_relay.h:130
struct llist_head list
Definition: frame_relay.h:110
bool active
Definition: frame_relay.h:116
int(* rx_cb)(void *cb_data, struct msgb *msg)
Definition: frame_relay.h:127
uint16_t dlci
Definition: frame_relay.h:113
Definition: frame_relay.h:67
enum osmo_fr_role role
Definition: frame_relay.h:71
unsigned int polling_count
Definition: frame_relay.h:86
uint8_t last_tx_seq
Definition: frame_relay.h:81
bool state
Definition: frame_relay.h:91
struct osmo_fr_network * net
Definition: frame_relay.h:70
void(* status_cb)(struct osmo_fr_link *link, void *cb_data, bool active)
Definition: frame_relay.h:103
unsigned int err_count
Definition: frame_relay.h:87
uint8_t last_rx_seq
Definition: frame_relay.h:77
void * cb_data
Definition: frame_relay.h:104
const char * name
Definition: frame_relay.h:73
struct llist_head dlc_list
Definition: frame_relay.h:94
struct llist_head list
Definition: frame_relay.h:69
struct osmo_timer_list t392
Definition: frame_relay.h:84
int(* tx_cb)(void *data, struct msgb *msg)
Definition: frame_relay.h:101
int(* unknown_dlc_rx_cb)(void *cb_data, struct msgb *msg)
Definition: frame_relay.h:97
unsigned int succeed
Definition: frame_relay.h:88
void * unknown_dlc_rx_cb_data
Definition: frame_relay.h:98
struct osmo_timer_list t391
Definition: frame_relay.h:83
uint8_t expected_rep
Definition: frame_relay.h:90
Definition: frame_relay.h:54
struct llist_head links
Definition: frame_relay.h:55
unsigned int n392
Definition: frame_relay.h:58
unsigned int n391
Definition: frame_relay.h:57
unsigned int n393
Definition: frame_relay.h:59
struct osmo_tdef * T_defs
Definition: frame_relay.h:61