Loading...
Searching...
No Matches
ss7_route_table.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
/***********************************************************************
* SS7 Routing Tables
***********************************************************************/
struct osmo_ss7_instance;
struct osmo_ss7_route_table {
struct llist_head list;
struct osmo_ss7_instance *inst;
struct llist_head routes;
struct {
char *name;
char *description;
} cfg;
};
struct osmo_ss7_route_table *
ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name);
struct osmo_ss7_route_table *
ss7_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_route *
ss7_route_table_find_route_by_dpc(struct osmo_ss7_route_table *rtbl, uint32_t dpc);
struct osmo_ss7_route *
ss7_route_table_find_route_by_dpc_mask(struct osmo_ss7_route_table *rtbl, uint32_t dpc,
uint32_t mask);
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);
dpc
uint32_t dpc
Definition m3ua.h:1
ss7_route_table_del_routes_by_as
void ss7_route_table_del_routes_by_as(struct osmo_ss7_route_table *rtbl, struct osmo_ss7_as *as)
Definition osmo_ss7_route_table.c:138
ss7_route_table_del_routes_by_linkset
void ss7_route_table_del_routes_by_linkset(struct osmo_ss7_route_table *rtbl, struct osmo_ss7_linkset *lset)
Definition osmo_ss7_route_table.c:127
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)
Find a SS7 route for given destination point code + mask in given table.
Definition osmo_ss7_route_table.c:107
ss7_route_table_destroy
void ss7_route_table_destroy(struct osmo_ss7_route_table *rtbl)
Definition osmo_ss7_route_table.c:77
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)
Definition osmo_ss7_route_table.c:65
ss7_route_table_find
struct osmo_ss7_route_table * ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name)
Definition osmo_ss7_route_table.c:53
ss7_route_table_find_route_by_dpc
struct osmo_ss7_route * ss7_route_table_find_route_by_dpc(struct osmo_ss7_route_table *rtbl, uint32_t dpc)
Find a SS7 route for given destination point code in given table.
Definition osmo_ss7_route_table.c:87
osmo_ss7_as
Definition ss7_as.h:31
osmo_ss7_instance
Definition ss7_instance.h:20
osmo_ss7_linkset
Definition ss7_linkset.h:13
osmo_ss7_route_table
Definition ss7_route_table.h:12
osmo_ss7_route_table::routes
struct llist_head routes
list of osmo_ss7_route
Definition ss7_route_table.h:18
osmo_ss7_route_table::cfg
struct osmo_ss7_route_table::@264302021020343140275354130337202027355314100247 cfg
osmo_ss7_route_table::list
struct llist_head list
member in list of routing tables
Definition ss7_route_table.h:14
osmo_ss7_route_table::inst
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition ss7_route_table.h:16
osmo_ss7_route_table::description
char * description
Definition ss7_route_table.h:22
osmo_ss7_route_table::name
char * name
Definition ss7_route_table.h:21
osmo_ss7_route
Definition ss7_route.h:17
osmo_ss7_route::as
struct osmo_ss7_as * as
pointer to Application Server
Definition ss7_route.h:27
osmo_ss7_route::mask
uint32_t mask
Definition ss7_route.h:33