libosmogb 1.9.0.196-9975
Osmocom Gb library
frame_relay.h File Reference
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/utils.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  osmo_fr_network
 
struct  osmo_fr_link
 
struct  osmo_fr_dlc
 

Macros

#define FRAME_RELAY_MTU   1600
 
#define FRAME_RELAY_SDU   (FRAME_RELAY_MTU - 2)
 

Enumerations

enum  osmo_fr_role {
  FR_ROLE_USER_EQUIPMENT ,
  FR_ROLE_NETWORK_EQUIPMENT
}
 

Functions

static const char * osmo_fr_role_str (enum osmo_fr_role role)
 
struct osmo_fr_networkosmo_fr_network_alloc (void *ctx)
 
void osmo_fr_network_free (struct osmo_fr_network *net)
 
void osmo_fr_network_dump_vty (struct vty *vty, const struct osmo_fr_network *net)
 
struct osmo_fr_linkosmo_fr_link_alloc (struct osmo_fr_network *net, enum osmo_fr_role role, const char *name)
 
void osmo_fr_link_free (struct osmo_fr_link *link)
 
struct osmo_fr_dlcosmo_fr_dlc_alloc (struct osmo_fr_link *link, uint16_t dlci)
 
void osmo_fr_dlc_free (struct osmo_fr_dlc *dlc)
 
struct osmo_fr_dlcosmo_fr_dlc_by_dlci (struct osmo_fr_link *link, uint16_t dlci)
 
int osmo_fr_rx (struct msgb *msg)
 
int osmo_fr_tx_dlc (struct msgb *msg)
 

Variables

const struct value_string osmo_fr_role_names []
 

Macro Definition Documentation

◆ FRAME_RELAY_MTU

#define FRAME_RELAY_MTU   1600

◆ FRAME_RELAY_SDU

#define FRAME_RELAY_SDU   (FRAME_RELAY_MTU - 2)

Enumeration Type Documentation

◆ osmo_fr_role

Enumerator
FR_ROLE_USER_EQUIPMENT 
FR_ROLE_NETWORK_EQUIPMENT 

Function Documentation

◆ osmo_fr_dlc_alloc()

◆ osmo_fr_dlc_by_dlci()

struct osmo_fr_dlc * osmo_fr_dlc_by_dlci ( struct osmo_fr_link link,
uint16_t  dlci 
)

◆ osmo_fr_dlc_free()

void osmo_fr_dlc_free ( struct osmo_fr_dlc dlc)

References osmo_fr_dlc::list, and llist_del().

Referenced by osmo_fr_link_free().

◆ osmo_fr_link_alloc()

◆ osmo_fr_link_free()

◆ osmo_fr_network_alloc()

struct osmo_fr_network * osmo_fr_network_alloc ( void *  ctx)

◆ osmo_fr_network_dump_vty()

void osmo_fr_network_dump_vty ( struct vty vty,
const struct osmo_fr_network net 
)

◆ osmo_fr_network_free()

void osmo_fr_network_free ( struct osmo_fr_network net)

◆ osmo_fr_role_str()

static const char * osmo_fr_role_str ( enum osmo_fr_role  role)
inlinestatic

◆ osmo_fr_rx()

◆ osmo_fr_tx_dlc()

Variable Documentation

◆ osmo_fr_role_names

const struct value_string osmo_fr_role_names[]
extern

Referenced by osmo_fr_role_str().