libosmo-sigtran 2.1.0.49-23d1
Osmocom SIGTRAN library
|
#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"
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 | ||
) |
References osmo_ss7_route_label::dpc, NULL, osmo_ss7_route_label::opc, osmo_ss7_pointcode_print(), osmo_ss7_pointcode_print2(), and osmo_ss7_route_label::sls.
Referenced by DEFUN(), and gen_mtp_transfer_req_xua().
|
static |
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 | ||
) |
void ss7_route_table_destroy | ( | struct osmo_ss7_route_table * | rtbl | ) |
References osmo_ss7_route_table::list.
struct osmo_ss7_route_table * ss7_route_table_find | ( | struct osmo_ss7_instance * | inst, |
const char * | name | ||
) |
struct osmo_ss7_combined_linkset * ss7_route_table_find_combined_linkset | ( | struct osmo_ss7_route_table * | rtbl, |
uint32_t | dpc, | ||
uint32_t | mask, | ||
uint32_t | prio | ||
) |
References osmo_ss7_combined_linkset::cfg, osmo_ss7_route_table::combined_linksets, dpc, osmo_ss7_combined_linkset::list, osmo_ss7_combined_linkset::mask, NULL, osmo_ss7_combined_linkset::pc, and osmo_ss7_combined_linkset::priority.
Referenced by ss7_route_insert(), and ss7_route_table_find_or_create_combined_linkset().
struct osmo_ss7_combined_linkset * ss7_route_table_find_combined_linkset_by_dpc | ( | struct osmo_ss7_route_table * | rtbl, |
uint32_t | dpc | ||
) |
References osmo_ss7_combined_linkset::cfg, osmo_ss7_instance::cfg, osmo_ss7_route_table::combined_linksets, dpc, osmo_ss7_route_table::inst, osmo_ss7_combined_linkset::list, osmo_ss7_combined_linkset::mask, NULL, osmo_ss7_pc_normalize(), osmo_ss7_combined_linkset::pc, osmo_ss7_instance::pc_fmt, and ss7_initialized.
struct osmo_ss7_combined_linkset * ss7_route_table_find_combined_linkset_by_dpc_mask | ( | struct osmo_ss7_route_table * | rtbl, |
uint32_t | dpc, | ||
uint32_t | mask | ||
) |
References osmo_ss7_combined_linkset::cfg, osmo_ss7_instance::cfg, osmo_ss7_route_table::combined_linksets, dpc, osmo_ss7_route_table::inst, osmo_ss7_combined_linkset::list, osmo_ss7_combined_linkset::mask, NULL, osmo_ss7_pc_normalize(), osmo_ss7_combined_linkset::pc, osmo_ss7_instance::pc_fmt, and ss7_initialized.
Referenced by ss7_route_table_find_route_by_dpc_mask().
struct osmo_ss7_route_table * ss7_route_table_find_or_create | ( | struct osmo_ss7_instance * | inst, |
const char * | name | ||
) |
References osmo_ss7_route_table::inst, osmo_ss7_route_table::name, ss7_initialized, ss7_route_table_alloc(), and ss7_route_table_find().
Referenced by ss7_instance_alloc().
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 | ||
) |
struct osmo_ss7_route * ss7_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.
This function is used for route management procedures, not for packet routing lookup procedures!
References osmo_ss7_instance::cfg, osmo_ss7_route::clset, dpc, osmo_ss7_route_table::inst, osmo_ss7_route::list, osmo_ss7_route::mask, NULL, osmo_ss7_pc_normalize(), osmo_ss7_instance::pc_fmt, osmo_ss7_combined_linkset::routes, ss7_initialized, and ss7_route_table_find_combined_linkset_by_dpc_mask().
Referenced by _rout_key(), DEFUN_ATTR(), handle_rkey_dereg(), ipa_add_route(), ipa_del_route(), osmo_sccp_simple_client_on_ss7_id(), and ss7_route_create().
struct osmo_ss7_route * ss7_route_table_lookup_route | ( | struct osmo_ss7_route_table * | rtbl, |
const struct osmo_ss7_route_label * | rtlabel | ||
) |
References osmo_ss7_combined_linkset::cfg, osmo_ss7_instance::cfg, osmo_ss7_route_table::combined_linksets, osmo_ss7_route_label::dpc, osmo_ss7_route_table::inst, osmo_ss7_combined_linkset::mask, NULL, osmo_ss7_route_label::opc, osmo_ss7_pc_normalize(), osmo_ss7_combined_linkset::pc, osmo_ss7_instance::pc_fmt, osmo_ss7_route_label::sls, and ss7_combined_linkset_lookup_route().
Referenced by ss7_instance_lookup_route().