libosmo-sigtran
0.10.0
Osmocom SIGTRAN library
|
Go to the documentation of this file.
6 #include <osmocom/core/linuxlist.h>
7 #include <osmocom/core/utils.h>
8 #include <osmocom/core/fsm.h>
9 #include <osmocom/core/msgb.h>
10 #include <osmocom/core/prim.h>
31 #define OSMO_SS7_PC_INVALID 0xffffffff
34 return pc <= 0x00ffffff;
43 struct llist_head
list;
72 struct llist_head
list;
110 uint8_t c0, uint8_t c1, uint8_t c2);
176 struct llist_head
list;
203 struct llist_head
list;
264 static inline const char *
280 static inline const char *
290 struct llist_head
list;
294 struct osmo_fsm_inst *
fi;
354 struct llist_head
list;
358 struct osmo_fsm_inst *
fi;
404 uint16_t remote_port, uint16_t local_port,
422 #define LOGPASP(asp, subsys, level, fmt, args ...) \
423 LOGP(subsys, level, "asp-%s: " fmt, (asp)->cfg.name, ## args)
434 struct llist_head
list;
451 uint16_t local_port);
455 uint16_t local_port,
const char *local_host);
468 const char *default_local_ip,
int default_remote_port,
469 const char *default_remote_ip);
475 int default_local_port,
476 const char *default_local_ip,
477 int default_remote_port,
478 const char *default_remote_ip);
483 const char *local_ip);
488 int local_port,
const char *local_ip);
493 const char *name, uint32_t pc,
494 int local_port,
int remote_port,
495 const char *remote_ip);
osmo_prim_cb prim_cb
Definition: osmo_ss7.h:126
struct osmo_ss7_instance * osmo_ss7_instance_find(uint32_t id)
Find a SS7 Instance with given ID.
Definition: osmo_ss7.c:329
void osmo_ss7_link_destroy(struct osmo_ss7_link *link)
Destryo SS7 Link.
Definition: osmo_ss7.c:621
Definition: sccp_internal.h:9
uint32_t id
Definition: osmo_ss7.h:161
uint8_t network_indicator
Definition: osmo_ss7.h:98
struct osmo_sccp_instance * osmo_sccp_simple_client(void *ctx, const char *name, uint32_t default_pc, enum osmo_ss7_asp_protocol prot, int default_local_port, const char *default_local_ip, int default_remote_port, const char *default_remote_ip)
request an sccp client instance
Definition: sccp_user.c:518
struct llist_head osmo_ss7_instances
struct llist_head list
member of global list of instances
Definition: osmo_ss7.h:72
struct osmo_ss7_link * links[16]
array of osmo_ss7_link
Definition: osmo_ss7.h:182
int osmo_ss7_vty_go_parent(struct vty *vty)
Definition: osmo_ss7_vty.c:1662
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:387
int osmo_ss7_bind_all_instances()
bind all xUA servers on each of the stored SS7 instances
Definition: osmo_ss7.c:447
char * description
Definition: osmo_ss7.h:160
struct osmo_ss7_as * as
pointer to Application Server
Definition: osmo_ss7.h:213
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: osmo_ss7.h:47
Definition: osmo_ss7.h:288
struct osmo_ss7_instance::@20 cfg
osmo_ss7_as_traffic_mode
Definition: osmo_ss7.h:254
@ OSMO_SS7_ASP_PROT_IPA
Definition: osmo_ss7.h:274
uint16_t port
Definition: osmo_ss7.h:342
Definition: osmo_ss7.h:338
struct osmo_fsm_inst * fi
AS FSM.
Definition: osmo_ss7.h:294
int osmo_ss7_xua_server_bind(struct osmo_xua_server *xs)
Set the xUA server to bind/listen to the currently configured ip/port.
Definition: osmo_ss7.c:1831
struct llist_head list
member in osmo_ss7_route_table::routes
Definition: osmo_ss7.h:205
uint32_t priority
lower priority is higher
Definition: osmo_ss7.h:223
uint32_t l_rk_id
Definition: osmo_ss7.h:248
struct osmo_ss7_route * osmo_ss7_route_create(struct osmo_ss7_route_table *rtbl, uint32_t dpc, uint32_t mask, const char *linkset_name)
Create a new route in the given routing table.
Definition: osmo_ss7.c:782
struct llist_head linksets
list of osmo_ss7_linkset
Definition: osmo_ss7.h:74
int osmo_ss7_instance_set_pc_fmt(struct osmo_ss7_instance *inst, uint8_t c0, uint8_t c1, uint8_t c2)
Set the point code format used in given SS7 instance.
Definition: osmo_ss7.c:410
osmo_ss7_asp_admin_state
Definition: osmo_ss7.h:343
Definition: osmo_ss7.h:244
Definition: osmo_ss7.h:175
int osmo_ss7_user_unregister(struct osmo_ss7_instance *inst, uint8_t service_ind, struct osmo_ss7_user *user)
Unregister a MTP user for a given service indicator.
Definition: osmo_ss7.c:496
uint32_t primary_pc
Definition: osmo_ss7.h:95
uint32_t dpc
Definition: m3ua.h:1
@ OSMO_SS7_ASP_PROT_M3UA
Definition: osmo_ss7.h:273
void osmo_ss7_asp_destroy(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1179
const char * osmo_ss7_pointcode_print2(const struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:282
struct osmo_ss7_as * osmo_ss7_as_find_by_proto(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto)
Find Application Server (AS) by given protocol.
Definition: osmo_ss7.c:889
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:445
void osmo_ss7_vty_init_sg(void *ctx)
Definition: osmo_ss7_vty.c:1814
void * lm_priv
Definition: osmo_ss7.h:376
bool rkm_dyn_allocated
Were we dynamically allocated by RKM?
Definition: osmo_ss7.h:297
struct osmo_stream_srv_link * server
Definition: osmo_ss7.h:440
int osmo_ss7_asp_restart(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1215
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:435
void * priv
Definition: osmo_ss7.h:128
struct llist_head list
Definition: osmo_ss7.h:178
uint32_t pc
Definition: osmo_ss7.h:250
enum osmo_ss7_as_traffic_mode mode
Definition: osmo_ss7.h:304
Definition: osmo_ss7.h:433
struct osmo_ss7_asp_peer local
Definition: osmo_ss7.h:391
char * linkset_name
human-specified linkset name
Definition: osmo_ss7.h:221
struct value_string osmo_ss7_as_traffic_mode_vals[]
Definition: osmo_ss7.c:61
int osmo_ss7_asp_send(struct osmo_ss7_asp *asp, struct msgb *msg)
send a fully encoded msgb via a given ASP
Definition: osmo_ss7.c:1715
enum osmo_ss7_asp_admin_state adm_state
Definition: osmo_ss7.h:388
int osmo_ss7_user_mtp_xfer_req(struct osmo_ss7_instance *inst, struct osmo_mtp_prim *omp)
Definition: osmo_ss7_hmrt.c:284
void osmo_ss7_register_rx_unknown_cb(osmo_ss7_asp_rx_unknown_cb *cb)
Register a call-back function for unknown SCTP PPID / IPA Stream ID.
Definition: osmo_ss7.c:1937
@ OSMO_SS7_LS_SHUTDOWN
Definition: osmo_ss7.h:148
int osmo_ss7_as_add_asp(struct osmo_ss7_as *as, const char *asp_name)
Add given ASP to given AS.
Definition: osmo_ss7.c:957
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:355
bool permit_dyn_rkm_alloc
Definition: osmo_ss7.h:100
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:270
struct osmo_ss7_as::@25 cfg
const char * osmo_ss7_route_name(struct osmo_ss7_route *rt, bool list_asps)
Return human readable representation of the route, in a static buffer.
Definition: osmo_ss7_hmrt.c:149
struct osmo_ss7_route::@23 dest
struct osmo_xua_server * osmo_ss7_xua_server_find(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port)
Definition: osmo_ss7.c:1767
char * description
Definition: osmo_ss7.h:53
Definition: osmo_ss7.h:70
struct osmo_sccp_instance * osmo_sccp_simple_client_on_ss7_id(void *ctx, uint32_t ss7_id, const char *name, uint32_t default_pc, enum osmo_ss7_asp_protocol prot, int default_local_port, const char *default_local_ip, int default_remote_port, const char *default_remote_ip)
request an sccp client instance
Definition: sccp_user.c:334
char * host
Definition: osmo_ss7.h:341
struct llist_head siblings
Definition: osmo_ss7.h:362
struct osmo_ss7_asp * asps[16]
Definition: osmo_ss7.h:311
struct msgb * pending_msg
Pending message for non-blocking IPA read.
Definition: osmo_ss7.h:382
char * name
Definition: osmo_ss7.h:185
enum osmo_ss7_link_adm_state adm_state
Definition: osmo_ss7.h:163
const char * osmo_ss7_pointcode_print(const struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:274
struct osmo_stream_cli * client
osmo_stream / libosmo-netif handles
Definition: osmo_ss7.h:365
char delimiter
Definition: osmo_ss7.h:68
enum osmo_ss7_as_traffic_mode osmo_ss7_tmode_from_xua(uint32_t in)
Definition: osmo_ss7.c:1903
struct osmo_sccp_instance * osmo_sccp_simple_server(void *ctx, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip)
Definition: sccp_user.c:580
static const char * osmo_ss7_asp_protocol_name(enum osmo_ss7_asp_protocol mode)
Definition: osmo_ss7.h:281
uint32_t mask
Definition: osmo_ss7.h:219
uint8_t component_len[3]
Definition: osmo_ss7.h:69
struct osmo_xua_server::@28 cfg
const struct osmo_xua_layer_manager * lm
Definition: osmo_ss7.h:375
void osmo_ss7_linkset_destroy(struct osmo_ss7_linkset *lset)
Destroy a SS7 Linkset.
Definition: osmo_ss7.c:547
struct osmo_sccp_instance * sccp
Definition: osmo_ss7.h:89
struct osmo_ss7_as * osmo_ss7_as_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find Application Server by given name.
Definition: osmo_ss7.c:837
int osmo_ss7_instance_bind(struct osmo_ss7_instance *inst)
bind all xUA servers belonging to an SS7 Instance
Definition: osmo_ss7.c:430
struct osmo_ss7_pc_fmt pc_fmt
Definition: osmo_ss7.h:99
struct osmo_ss7_as * osmo_ss7_as_find_or_create(struct osmo_ss7_instance *inst, const char *name, enum osmo_ss7_asp_protocol proto)
Find or Create Application Server.
Definition: osmo_ss7.c:924
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:122
char * description
Definition: osmo_ss7.h:186
char * name
Definition: osmo_ss7.h:93
char * name
Definition: osmo_ss7.h:385
@ _NUM_OSMO_SS7_ASP_TMOD
Definition: osmo_ss7.h:259
struct osmo_ss7_as::@25::@26 pc_override
char * name
Definition: osmo_ss7.h:300
int osmo_ss7_pointcode_parse_mask_or_len(struct osmo_ss7_instance *inst, const char *in)
Definition: osmo_ss7.c:288
struct osmo_ss7_link * osmo_ss7_link_find_or_create(struct osmo_ss7_linkset *lset, uint32_t id)
Find or create SS7 Link with given ID in given Linkset.
Definition: osmo_ss7.c:638
char * name
Definition: osmo_ss7.h:52
struct osmo_ss7_as * osmo_ss7_as_find_by_l_rk_id(struct osmo_ss7_instance *inst, uint32_t l_rk_id)
Find Application Server by given local routing key ID.
Definition: osmo_ss7.c:871
int osmo_ss7_pointcode_parse(struct osmo_ss7_instance *inst, const char *str)
Definition: osmo_ss7.c:216
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: osmo_ss7.h:180
char * description
Definition: osmo_ss7.h:301
Definition: osmo_ss7.h:429
char * description
Definition: osmo_ss7.h:94
@ _NUM_OSMO_SS7_ASP_PROT
Definition: osmo_ss7.h:275
void osmo_ss7_route_destroy(struct osmo_ss7_route *rt)
Destroy a given SS7 route.
Definition: osmo_ss7.c:821
osmo_prim_cb prim_cb
Definition: osmo_ss7.h:432
int osmo_ss7_asp_rx_unknown_cb(struct osmo_ss7_asp *asp, int ppid_mux, struct msgb *msg)
Weak function to handle payload for unknown/unsupported PPID or IPA StreamID.
Definition: osmo_ss7.h:418
bool osmo_ss7_as_has_asp(struct osmo_ss7_as *as, struct osmo_ss7_asp *asp)
Determine if given AS contains ASP.
Definition: osmo_ss7.c:1037
Definition: osmo_ss7.h:118
int osmo_ss7_xua_server_set_local_host(struct osmo_xua_server *xs, const char *local_host)
Definition: osmo_ss7.c:1840
struct llist_head routes
list of osmo_ss7_route
Definition: osmo_ss7.h:49
static bool osmo_ss7_pc_is_valid(uint32_t pc)
Definition: osmo_ss7.h:32
struct osmo_fsm_inst * fi
ASP FSM.
Definition: osmo_ss7.h:358
@ OSMO_SS7_ASP_ADM_S_BLOCKED
SCP association, but reject ASP-ACTIVE.
Definition: osmo_ss7.h:347
uint8_t si
Definition: osmo_ss7.h:251
struct llist_head asp_list
list of osmo_ss7_asp
Definition: osmo_ss7.h:78
struct osmo_ss7_route * osmo_ss7_route_find_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.c:711
struct osmo_ss7_route_table * rtable_system
Definition: osmo_ss7.h:87
char * description
Definition: osmo_ss7.h:386
void osmo_ss7_xua_server_destroy(struct osmo_xua_server *xs)
Definition: osmo_ss7.c:1850
void osmo_ss7_vty_init_asp(void *ctx)
Definition: osmo_ss7_vty.c:1808
struct osmo_ss7_asp * osmo_ss7_asp_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:1055
osmo_ss7_link_adm_state
Definition: osmo_ss7.h:145
uint32_t recovery_timeout_msec
Definition: osmo_ss7.h:305
const struct osmo_ss7_user * user[16]
Definition: osmo_ss7.h:85
@ OSMO_SS7_ASP_ADM_S_ENABLED
in normal operation
Definition: osmo_ss7.h:349
struct llist_head as_list
list of osmo_ss7_as
Definition: osmo_ss7.h:76
uint32_t asp_id
Definition: osmo_ss7.h:371
struct osmo_ss7_instance * osmo_ss7_instance_find_or_create(void *ctx, uint32_t id)
Find or create a SS7 Instance.
Definition: osmo_ss7.c:346
struct osmo_ss7_route_table * osmo_ss7_route_table_find(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:668
struct osmo_ss7_route * osmo_ss7_route_lookup(struct osmo_ss7_instance *inst, uint32_t dpc)
Find a SS7 route for given destination point code in given SS7.
Definition: osmo_ss7.c:746
struct osmo_xua_server * xua_server
osmo_xua_server over which we were established
Definition: osmo_ss7.h:361
struct osmo_ss7_linkset::@22 cfg
int osmo_ss7_as_del_asp(struct osmo_ss7_as *as, const char *asp_name)
Delete given ASP from given AS.
Definition: osmo_ss7.c:987
bool is_server
Definition: osmo_ss7.h:389
int osmo_ss7_is_config_node(struct vty *vty, int node)
Definition: osmo_ss7_vty.c:1710
uint8_t qos_class
Definition: osmo_ss7.h:393
struct osmo_ss7_route_table * osmo_ss7_route_table_find_or_create(struct osmo_ss7_instance *inst, const char *name)
Definition: osmo_ss7.c:680
@ _NUM_OSMO_SS7_LS
Definition: osmo_ss7.h:151
int osmo_ss7_tmode_to_xua(enum osmo_ss7_as_traffic_mode tmod)
Definition: osmo_ss7.c:1889
bool dyn_allocated
Were we dynamically allocated.
Definition: osmo_ss7.h:379
struct osmo_ss7_asp_peer local
Definition: osmo_ss7.h:444
const char * name
Definition: osmo_ss7.h:124
struct osmo_xua_server * osmo_ss7_xua_server_create(struct osmo_ss7_instance *inst, enum osmo_ss7_asp_protocol proto, uint16_t local_port, const char *local_host)
create a new xUA server configured with given ip/port
Definition: osmo_ss7.c:1789
bool osmo_ss7_pc_is_local(struct osmo_ss7_instance *inst, uint32_t pc)
Definition: osmo_ss7.c:1867
@ OSMO_SS7_ASP_PROT_SUA
Definition: osmo_ss7.h:272
struct llist_head list
entry in 'ref osmo_ss7_instance.as_list
Definition: osmo_ss7.h:290
enum osmo_ss7_asp_protocol proto
Definition: osmo_ss7.h:302
@ OSMO_SS7_AS_TMOD_LOADSHARE
Definition: osmo_ss7.h:257
@ OSMO_SS7_AS_TMOD_BCAST
Definition: osmo_ss7.h:256
struct llist_head asp_list
Definition: osmo_ss7.h:438
struct llist_head list
Definition: osmo_ss7.h:434
struct osmo_ss7_asp::@27 cfg
char * name
Definition: osmo_ss7.h:159
struct osmo_ss7_routing_key routing_key
Definition: osmo_ss7.h:303
static const char * osmo_ss7_as_traffic_mode_name(enum osmo_ss7_as_traffic_mode mode)
Definition: osmo_ss7.h:265
@ OSMO_SS7_ASP_ADM_S_SHUTDOWN
no SCTP association with peer
Definition: osmo_ss7.h:345
struct osmo_ss7_as * osmo_ss7_as_find_by_rctx(struct osmo_ss7_instance *inst, uint32_t rctx)
Find Application Server by given routing context.
Definition: osmo_ss7.c:854
struct osmo_ss7_route * osmo_ss7_route_find_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.c:728
@ OSMO_SS7_LS_ENABLED
Definition: osmo_ss7.h:150
struct osmo_sccp_instance * osmo_sccp_simple_server_add_clnt(struct osmo_sccp_instance *inst, enum osmo_ss7_asp_protocol prot, const char *name, uint32_t pc, int local_port, int remote_port, const char *remote_ip)
Definition: sccp_user.c:589
uint32_t local_pc
Definition: osmo_ss7.h:188
struct osmo_ss7_linkset * osmo_ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find SS7 Linkset by given name.
Definition: osmo_ss7.c:577
struct osmo_ss7_route_table * rtable
osmo_ss7_route_table to which we belong
Definition: osmo_ss7.h:207
uint32_t pc
Definition: osmo_ss7.h:218
bool accept_dyn_reg
Definition: osmo_ss7.h:443
@ OSMO_SS7_LS_INHIBITED
Definition: osmo_ss7.h:149
Definition: osmo_ss7.h:201
struct osmo_ss7_route_table::@19 cfg
uint32_t ssn
Definition: osmo_ss7.h:252
void osmo_ss7_instance_destroy(struct osmo_ss7_instance *inst)
Destroy a SS7 Instance.
Definition: osmo_ss7.c:387
int osmo_ss7_find_free_rctx(struct osmo_ss7_instance *inst)
Definition: osmo_ss7.c:92
struct osmo_stream_srv * server
Definition: osmo_ss7.h:366
struct osmo_ss7_linkset * linkset
pointer to linkset (destination) of route
Definition: osmo_ss7.h:211
int osmo_ss7_asp_use_default_lm(struct osmo_ss7_asp *asp, int log_level)
Definition: xua_default_lm_fsm.c:366
char * sock_name
pre-formatted human readable local/remote socket name
Definition: osmo_ss7.h:368
struct llist_head xua_servers
list of osmo_xua_servers
Definition: osmo_ss7.h:82
struct osmo_sccp_instance * osmo_sccp_simple_server_on_ss7_id(void *ctx, uint32_t ss7_id, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip)
Definition: sccp_user.c:539
@ OSMO_SS7_AS_TMOD_OVERRIDE
Definition: osmo_ss7.h:255
Definition: osmo_ss7.h:352
struct llist_head sccp_address_book
Definition: osmo_ss7.h:101
Definition: osmo_ss7.h:155
@ OSMO_SS7_ASP_PROT_NONE
Definition: osmo_ss7.h:271
Definition: osmo_ss7.h:65
bool asp_id_present
Definition: osmo_ss7.h:372
uint8_t qos_class
Definition: osmo_ss7.h:306
void osmo_ss7_route_table_destroy(struct osmo_ss7_route_table *rtbl)
Definition: osmo_ss7.c:697
struct osmo_ss7_linkset * linkset
osmo_ss7_linkset to which we belong
Definition: osmo_ss7.h:157
@ OSMO_SS7_AS_TMOD_ROUNDROBIN
Definition: osmo_ss7.h:258
struct value_string osmo_ss7_asp_protocol_vals[]
Definition: osmo_ss7.c:69
struct osmo_ss7_route::@24 cfg
struct osmo_ss7_asp * osmo_ss7_asp_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint16_t remote_port, uint16_t local_port, enum osmo_ss7_asp_protocol proto)
Definition: osmo_ss7.c:1147
uint32_t context
Definition: osmo_ss7.h:247
Definition: osmo_ss7.h:41
int osmo_ss7_user_register(struct osmo_ss7_instance *inst, uint8_t service_ind, struct osmo_ss7_user *user)
Register a MTP user for a given service indicator.
Definition: osmo_ss7.c:472
int osmo_ss7_mtp_to_user(struct osmo_ss7_instance *inst, struct osmo_mtp_prim *omp)
Definition: osmo_ss7.c:516
uint8_t qos_class
Definition: osmo_ss7.h:224
void osmo_ss7_as_destroy(struct osmo_ss7_as *as)
Destroy given Application Server.
Definition: osmo_ss7.c:1012
int osmo_ss7_asp_protocol_port(enum osmo_ss7_asp_protocol prot)
Definition: osmo_ss7.c:313
struct osmo_ss7_asp_peer remote
Definition: osmo_ss7.h:392
struct llist_head list
entry in osmo_ss7_instance::asp_list
Definition: osmo_ss7.h:354
uint32_t dpc
Definition: osmo_ss7.h:308
struct osmo_ss7_instance * inst
Definition: osmo_ss7.h:291
struct llist_head list
member in list of routing tables
Definition: osmo_ss7.h:45
void osmo_ss7_asp_disconnect(struct osmo_ss7_asp *asp)
Definition: osmo_ss7.c:1753
uint32_t adjacent_pc
Definition: osmo_ss7.h:187
uint32_t id
Definition: osmo_ss7.h:92
struct osmo_ss7_link::@21 cfg
struct llist_head rtable_list
list of osmo_ss7_route_table
Definition: osmo_ss7.h:80
struct osmo_ss7_linkset * osmo_ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc)
Find or allocate SS7 Linkset.
Definition: osmo_ss7.c:594
int osmo_ss7_init(void)
Definition: osmo_ss7.c:1876
struct osmo_ss7_asp * osmo_ss7_asp_find_by_proto(struct osmo_ss7_as *as, enum osmo_ss7_asp_protocol proto)
Find an ASP that matches the given protocol.
Definition: osmo_ss7.c:1133