libosmo-sigtran 2.0.0.50-b59d
Osmocom SIGTRAN library
ss7_linkset.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 Linksets
8 ***********************************************************************/
9
11struct osmo_ss7_link;
12
14 struct llist_head list;
18 struct osmo_ss7_link *links[16];
19
20 struct {
21 char *name;
23 uint32_t adjacent_pc;
24 uint32_t local_pc;
25 } cfg;
26};
27
28void ss7_linkset_destroy(struct osmo_ss7_linkset *lset);
29struct osmo_ss7_linkset *
31struct osmo_ss7_linkset *
32ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc);
struct osmo_ss7_linkset * ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc)
Find or allocate SS7 Linkset.
Definition: osmo_ss7_linkset.c:83
struct osmo_ss7_linkset * ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name)
Find SS7 Linkset by given name.
Definition: osmo_ss7_linkset.c:66
void ss7_linkset_destroy(struct osmo_ss7_linkset *lset)
Destroy a SS7 Linkset.
Definition: osmo_ss7_linkset.c:40
Definition: ss7_instance.h:20
Definition: ss7_linkset.h:13
struct osmo_ss7_link * links[16]
array of osmo_ss7_link
Definition: ss7_linkset.h:18
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition: ss7_linkset.h:16
uint32_t adjacent_pc
Definition: ss7_linkset.h:23
uint32_t local_pc
Definition: ss7_linkset.h:24
struct osmo_ss7_linkset::@28 cfg
char * name
Definition: ss7_linkset.h:21
struct llist_head list
Definition: ss7_linkset.h:14
char * description
Definition: ss7_linkset.h:22