libosmo-sigtran 2.1.0.200-e20a Osmocom SIGTRAN library

ss7_vty.h
Go to the documentation of this file.
1#pragma once
2
3/* Internal header used by libosmo-sccp, not available publicly for lib users */
4
5#include <stdbool.h>
6#include <stdint.h>
7
8#include <osmocom/vty/vty.h>
9
10#include <osmocom/netif/stream.h>
11#include <osmocom/sigtran/osmo_ss7.h>
12
13#include "ss7_instance.h"
14
15 enum cs7_role_t {
16 CS7_ROLE_SG,
17 CS7_ROLE_ASP
18};
19
20 extern void *g_ctx;
21 extern enum cs7_role_t cs7_role;
22 extern const struct value_string ipproto_vals[];
23
24#define CS7_STR "ITU-T Signaling System 7\n"
25#define PC_STR "Point Code\n"
26#define INST_STR "An instance of the SS7 stack\n"
27
28#define XUA_VAR_STR "(sua|m3ua|ipa)"
29
30#define XUA_VAR_HELP_STR \
31 "SCCP User Adaptation\n" \
32 "MTP3 User Adaptation\n" \
33 "IPA Multiplex (SCCP Lite)\n"
34
35#define IPPROTO_VAR_STR "(sctp|tcp)"
36#define IPPROTO_VAR_HELP_STR \
37 "SCTP (Stream Control Transmission Protocol)\n" \
38 "TCP (Transmission Control Protocol)\n"
39
40#define QOS_CLASS_RANGE_STR "<0-7>"
41#define QOS_CLASS_RANGE_HELP_STR "QoS Class\n"
42#define QOS_CLASS_VAR_STR "(" QOS_CLASS_RANGE_STR "|default)"
43#define QOS_CLASS_VAR_HELP_STR \
44 QOS_CLASS_RANGE_HELP_STR \
45 "Default QoS Class (0)\n"
46
47 int parse_trans_proto(const char *protocol);
48 enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol);
49
50/* ss7_asp_vty.c */
51 void ss7_vty_init_node_asp(void);
52 void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config);
53 int ss7_vty_node_asp_go_parent(struct vty *vty);
54
55/* ss7_as_vty.c */
56 void ss7_vty_init_node_as(void);
57 void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config);
58 int ss7_vty_node_as_go_parent(struct vty *vty);
59
60/* ss7_xua_srv_vty.c */
61 void ss7_vty_init_node_oxs(void);
62 void ss7_vty_init_show_oxs(void);
63 void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs);
64 int ss7_vty_node_oxs_go_parent(struct vty *vty);
osmo_ss7.h
osmo_ss7_asp_protocol
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:157
ss7_instance.h
g_ctx
void * g_ctx
Definition: ss7_vty.c:80
cs7_role
enum cs7_role_t cs7_role
Definition: ss7_vty.c:79
ss7_vty_init_show_oxs
void ss7_vty_init_show_oxs(void)
Definition: ss7_xua_srv_vty.c:331
ss7_vty_node_asp_go_parent
int ss7_vty_node_asp_go_parent(struct vty *vty)
Definition: ss7_asp_vty.c:1373
ss7_vty_init_node_asp
void ss7_vty_init_node_asp(void)
Definition: ss7_asp_vty.c:1402
ss7_vty_write_one_as
void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config)
Definition: ss7_as_vty.c:439
ss7_vty_init_node_oxs
void ss7_vty_init_node_oxs(void)
Definition: ss7_xua_srv_vty.c:337
parse_asp_proto
enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol)
Definition: ss7_vty.c:70
parse_trans_proto
int parse_trans_proto(const char *protocol)
Definition: ss7_vty.c:65
ss7_vty_node_as_go_parent
int ss7_vty_node_as_go_parent(struct vty *vty)
Definition: ss7_as_vty.c:623
cs7_role_t
cs7_role_t
Definition: ss7_vty.h:15
CS7_ROLE_ASP
@ CS7_ROLE_ASP
Definition: ss7_vty.h:17
CS7_ROLE_SG
@ CS7_ROLE_SG
Definition: ss7_vty.h:16
ss7_vty_write_one_oxs
void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs)
Definition: ss7_xua_srv_vty.c:213
ss7_vty_init_node_as
void ss7_vty_init_node_as(void)
Definition: ss7_as_vty.c:658
ss7_vty_write_one_asp
void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config)
Definition: ss7_asp_vty.c:1291
ss7_vty_node_oxs_go_parent
int ss7_vty_node_oxs_go_parent(struct vty *vty)
Definition: ss7_xua_srv_vty.c:317
ipproto_vals
const struct value_string ipproto_vals[]
Definition: ss7_vty.c:59
osmo_ss7_as
Definition: ss7_as.h:75
osmo_ss7_asp
Definition: ss7_asp.h:43
osmo_xua_server
Definition: ss7_xua_srv.h:22