libosmo-sigtran 2.1.0.134-a6b3
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
18};
19
20extern void *g_ctx;
21extern enum cs7_role_t cs7_role;
22extern 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
47int parse_trans_proto(const char *protocol);
48enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol);
49
50/* ss7_asp_vty.c */
51void ss7_vty_init_node_asp(void);
52void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config);
53int ss7_vty_node_asp_go_parent(struct vty *vty);
54
55/* ss7_as_vty.c */
56void ss7_vty_init_node_as(void);
57void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config);
58int ss7_vty_node_as_go_parent(struct vty *vty);
59
60/* ss7_xua_srv_vty.c */
61void ss7_vty_init_node_oxs(void);
62void ss7_vty_init_show_oxs(void);
63void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs);
64int 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:1284
void ss7_vty_init_node_asp(void)
Definition: ss7_asp_vty.c:1313
void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config)
Definition: ss7_as_vty.c:421
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:602
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:610
void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config)
Definition: ss7_asp_vty.c:1205
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