libosmo-sigtran 2.1.0.49-23d1
Osmocom SIGTRAN library
osmo_ss7_route_table.c File Reference
#include <stdio.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/logging.h>
#include <osmocom/sigtran/mtp_sap.h>
#include <osmocom/sigtran/osmo_ss7.h>
#include "ss7_combined_linkset.h"
#include "ss7_route.h"
#include "ss7_route_table.h"
#include "ss7_internal.h"

Functions

char * ss7_route_label_to_str (char *buf, size_t buf_len, const struct osmo_ss7_instance *inst, const struct osmo_ss7_route_label *rtlb)
 
static struct osmo_ss7_route_tabless7_route_table_alloc (struct osmo_ss7_instance *inst, const char *name)
 
struct osmo_ss7_route_tabless7_route_table_find (struct osmo_ss7_instance *inst, const char *name)
 
struct osmo_ss7_route_tabless7_route_table_find_or_create (struct osmo_ss7_instance *inst, const char *name)
 
void ss7_route_table_destroy (struct osmo_ss7_route_table *rtbl)
 
struct osmo_ss7_routess7_route_table_find_route_by_dpc_mask (struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask)
 Find a SS7 route for given destination point code + mask in given table. More...
 
struct osmo_ss7_combined_linksetss7_route_table_find_combined_linkset_by_dpc (struct osmo_ss7_route_table *rtbl, uint32_t dpc)
 
struct osmo_ss7_combined_linksetss7_route_table_find_combined_linkset_by_dpc_mask (struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask)
 
struct osmo_ss7_combined_linksetss7_route_table_find_combined_linkset (struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask, uint32_t prio)
 
struct osmo_ss7_combined_linksetss7_route_table_find_or_create_combined_linkset (struct osmo_ss7_route_table *rtable, uint32_t pc, uint32_t mask, uint32_t prio)
 
void ss7_route_table_del_routes_by_as (struct osmo_ss7_route_table *rtbl, struct osmo_ss7_as *as)
 
void ss7_route_table_del_routes_by_linkset (struct osmo_ss7_route_table *rtbl, struct osmo_ss7_linkset *lset)
 
struct osmo_ss7_routess7_route_table_lookup_route (struct osmo_ss7_route_table *rtbl, const struct osmo_ss7_route_label *rtlabel)
 

Function Documentation

◆ ss7_route_label_to_str()

char * ss7_route_label_to_str ( char *  buf,
size_t  buf_len,
const struct osmo_ss7_instance inst,
const struct osmo_ss7_route_label rtlb 
)

◆ ss7_route_table_alloc()

◆ ss7_route_table_del_routes_by_as()

◆ ss7_route_table_del_routes_by_linkset()

◆ ss7_route_table_destroy()

void ss7_route_table_destroy ( struct osmo_ss7_route_table rtbl)

◆ ss7_route_table_find()

◆ ss7_route_table_find_combined_linkset()

◆ ss7_route_table_find_combined_linkset_by_dpc()

◆ ss7_route_table_find_combined_linkset_by_dpc_mask()

◆ ss7_route_table_find_or_create()

struct osmo_ss7_route_table * ss7_route_table_find_or_create ( struct osmo_ss7_instance inst,
const char *  name 
)

◆ ss7_route_table_find_or_create_combined_linkset()

struct osmo_ss7_combined_linkset * ss7_route_table_find_or_create_combined_linkset ( struct osmo_ss7_route_table rtable,
uint32_t  pc,
uint32_t  mask,
uint32_t  prio 
)

◆ ss7_route_table_find_route_by_dpc_mask()

struct osmo_ss7_route * ss7_route_table_find_route_by_dpc_mask ( struct osmo_ss7_route_table rtbl,
uint32_t  dpc,
uint32_t  mask 
)

◆ ss7_route_table_lookup_route()