libosmo-sigtran  2.0.0.31-7261.202411072026
Osmocom SIGTRAN library
ss7_route_table.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <osmocom/core/linuxlist.h>
5 
6 /***********************************************************************
7  * SS7 Routing Tables
8  ***********************************************************************/
9 
10 struct osmo_ss7_instance;
11 
14  struct llist_head list;
18  struct llist_head routes;
19 
20  struct {
21  char *name;
22  char *description;
23  } cfg;
24 };
25 
26 struct osmo_ss7_route_table *
27 ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name);
28 struct osmo_ss7_route_table *
31 
32 struct osmo_ss7_route *
34 struct osmo_ss7_route *
36  uint32_t mask);
uint32_t dpc
Definition: m3ua.h:1
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:96
struct osmo_ss7_route_table * ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7_route_table.c:36
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:76
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:48
void ss7_route_table_destroy(struct osmo_ss7_route_table *rtbl)
Definition: osmo_ss7_route_table.c:66
Definition: osmo_ss7.h:50
Definition: ss7_route_table.h:12
struct llist_head routes
list of osmo_ss7_route
Definition: ss7_route_table.h:18
struct llist_head list
member in list of routing tables
Definition: ss7_route_table.h:14
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: ss7_route_table.h:16
char * description
Definition: ss7_route_table.h:22
char * name
Definition: ss7_route_table.h:21
struct osmo_ss7_route_table::@33 cfg
Definition: ss7_route.h:17
uint32_t mask
Definition: ss7_route.h:33