Loading...
Searching...
No Matches
ss7_linkset.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
/***********************************************************************
* SS7 Linksets
***********************************************************************/
struct osmo_ss7_instance;
struct osmo_ss7_link;
struct osmo_ss7_linkset {
struct llist_head list;
struct osmo_ss7_instance *inst;
struct osmo_ss7_link *links[16];
struct {
char *name;
char *description;
uint32_t adjacent_pc;
uint32_t local_pc;
} cfg;
};
void ss7_linkset_destroy(struct osmo_ss7_linkset *lset);
struct osmo_ss7_linkset *
ss7_linkset_find_by_name(struct osmo_ss7_instance *inst, const char *name);
struct osmo_ss7_linkset *
ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name, uint32_t pc);
ss7_linkset_find_or_create
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
ss7_linkset_find_by_name
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
ss7_linkset_destroy
void ss7_linkset_destroy(struct osmo_ss7_linkset *lset)
Destroy a SS7 Linkset.
Definition osmo_ss7_linkset.c:40
osmo_ss7_instance
Definition ss7_instance.h:20
osmo_ss7_link
Definition ss7_link.h:19
osmo_ss7_linkset
Definition ss7_linkset.h:13
osmo_ss7_linkset::links
struct osmo_ss7_link * links[16]
array of osmo_ss7_link
Definition ss7_linkset.h:18
osmo_ss7_linkset::inst
struct osmo_ss7_instance * inst
osmo_ss7_instance to which we belong
Definition ss7_linkset.h:16
osmo_ss7_linkset::adjacent_pc
uint32_t adjacent_pc
Definition ss7_linkset.h:23
osmo_ss7_linkset::local_pc
uint32_t local_pc
Definition ss7_linkset.h:24
osmo_ss7_linkset::name
char * name
Definition ss7_linkset.h:21
osmo_ss7_linkset::cfg
struct osmo_ss7_linkset::@022054367161247276340266313273373050166145202214 cfg
osmo_ss7_linkset::list
struct llist_head list
Definition ss7_linkset.h:14
osmo_ss7_linkset::description
char * description
Definition ss7_linkset.h:22