libosmo-sigtran 2.3.0.61-fb14d
Osmocom SIGTRAN library
ss7_qos_class.c File Reference
#include "ss7_asp.h"
#include "ss7_xua_srv.h"
#include "ss7_qos_class.h"

Functions

struct ss7_qos_class * ss7_qos_class_find (struct osmo_ss7_instance *inst, uint8_t qos_class)
 Find QoS Class. More...
 
struct ss7_qos_class * ss7_qos_class_create (struct osmo_ss7_instance *inst, uint8_t qos_class, uint8_t ip_dscp)
 Create QoS Class. More...
 
void ss7_qos_class_destroy (struct ss7_qos_class *qos)
 Delete QoS Class. More...
 
struct ss7_qos_class * ss7_qos_class_find_or_create (struct osmo_ss7_instance *inst, uint8_t qos_class, uint8_t ip_dscp)
 Find or Create QoS Class. More...
 
void ss7_qos_class_update (struct ss7_qos_class *qos)
 Update sockets of all ASPs and xUA Servers that use this QoS class. More...
 

Function Documentation

◆ ss7_qos_class_create()

struct ss7_qos_class * ss7_qos_class_create ( struct osmo_ss7_instance *  inst,
uint8_t  qos_class,
uint8_t  ip_dscp 
)

Create QoS Class.

Parameters
[in]instSS7 Instance on which we operate
[in]qos_classId of QoS class
[in]ip_dscpIP DSCP
Returns
pointer to a QoS class instance on success; NULL otherwise

References ss7_qos_class::inst, ss7_qos_class::ip_dscp, ss7_qos_class::list, NULL, ss7_qos_class::qos_class, and osmo_ss7_instance::qos_class_list.

Referenced by ss7_qos_class_find_or_create().

◆ ss7_qos_class_destroy()

◆ ss7_qos_class_find()

struct ss7_qos_class * ss7_qos_class_find ( struct osmo_ss7_instance *  inst,
uint8_t  qos_class 
)

Find QoS Class.

Parameters
[in]instSS7 Instance on which we operate
[in]qos_classId of QoS class
Returns
pointer to a QoS class instance on success; NULL otherwise

References ss7_qos_class::inst, ss7_qos_class::list, NULL, ss7_qos_class::qos_class, and osmo_ss7_instance::qos_class_list.

Referenced by DEFUN_ATTR(), and ss7_qos_class_find_or_create().

◆ ss7_qos_class_find_or_create()

struct ss7_qos_class * ss7_qos_class_find_or_create ( struct osmo_ss7_instance *  inst,
uint8_t  qos_class,
uint8_t  ip_dscp 
)

Find or Create QoS Class.

Parameters
[in]instSS7 Instance on which we operate
[in]qos_classId of QoS class
[in]ip_dscpIP DSCP
Returns
pointer to a QoS class instance on success; NULL otherwise

References ss7_qos_class::inst, ss7_qos_class::ip_dscp, ss7_qos_class::qos_class, ss7_qos_class_create(), and ss7_qos_class_find().

Referenced by DEFUN_ATTR().

◆ ss7_qos_class_update()

void ss7_qos_class_update ( struct ss7_qos_class *  qos)