libosmo-sigtran  2.1.0.101-af06.202506182026
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>
12 
13 #include "ss7_instance.h"
14 
15 enum cs7_role_t {
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_asp_protocol
Definition: osmo_ss7.h:157
void * g_ctx
Definition: ss7_vty.c:79
enum cs7_role_t cs7_role
Definition: ss7_vty.c:78
void ss7_vty_init_show_oxs(void)
Definition: ss7_xua_srv_vty.c:331
int ss7_vty_node_asp_go_parent(struct vty *vty)
Definition: ss7_asp_vty.c:1166
void ss7_vty_init_node_asp(void)
Definition: ss7_asp_vty.c:1195
void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config)
Definition: ss7_as_vty.c:414
void ss7_vty_init_node_oxs(void)
Definition: ss7_xua_srv_vty.c:337
enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol)
Definition: ss7_vty.c:69
int parse_trans_proto(const char *protocol)
Definition: ss7_vty.c:64
int ss7_vty_node_as_go_parent(struct vty *vty)
Definition: ss7_as_vty.c:595
cs7_role_t
Definition: ss7_vty.h:15
@ CS7_ROLE_ASP
Definition: ss7_vty.h:17
@ CS7_ROLE_SG
Definition: ss7_vty.h:16
void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs)
Definition: ss7_xua_srv_vty.c:213
void ss7_vty_init_node_as(void)
Definition: ss7_as_vty.c:603
void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config)
Definition: ss7_asp_vty.c:1102
int ss7_vty_node_oxs_go_parent(struct vty *vty)
Definition: ss7_xua_srv_vty.c:317
const struct value_string ipproto_vals[]
Definition: ss7_vty.c:58
Definition: ss7_as.h:74
Definition: ss7_asp.h:42
Definition: ss7_xua_srv.h:22